{"version":3,"sources":["webpack:///./src/lib/common/programTypeHelpers.ts","webpack:///./src/elements/MultiselectInput.vue?ac25","webpack:///./src/lib/support/utilities/smsCount.ts","webpack:///./node_modules/vue-select/dist/vue-select.js","webpack:///./src/components/CommunicationModal.vue?0637","webpack:///./src/filters/dateFmt.ts","webpack:///./src/components/CommunicationModal.vue","webpack:///./src/components/CommunicationModal.vue?a76f","webpack:///./src/components/CommunicationModal.vue?83cb","webpack:///./src/components/Communication/RecipientListPreview.vue?084f","webpack:///./src/lib/support/utilities/email/emailUtil.ts","webpack:///./src/components/Communication/RecipientListPreview.vue","webpack:///./src/components/Communication/RecipientListPreview.vue?cd9b","webpack:///./src/components/Communication/RecipientListPreview.vue?2eea","webpack:///./src/components/Communication/RecipientListPreview.vue?0c63","webpack:///./src/components/Communication/MessageChannelData.ts","webpack:///./src/views/Programs/Communications/GroupMessages.vue?6579","webpack:///./src/components/Communication/GroupMessageSelector/GroupMessageSelectorData.ts","webpack:///./src/components/Communication/GroupMessageSelector/GroupMessageSelector.vue?04f2","webpack:///./src/components/Communication/GroupMessageSelector/GroupMessageSelector.vue","webpack:///./src/components/Communication/GroupMessageSelector/GroupMessageSelector.vue?b4cb","webpack:///./src/components/Communication/GroupMessageSelector/GroupMessageSelector.vue?90ec","webpack:///./src/components/Communication/GroupMessageChannel/GroupMessageChannel.vue?3998","webpack:///./src/components/Communication/GroupMessageChannel/GroupMessageChannel.vue","webpack:///./src/components/Communication/GroupMessageChannel/GroupMessageChannel.vue?6831","webpack:///./src/components/Communication/GroupMessageChannel/GroupMessageChannel.vue?669f","webpack:///./src/components/Communication/GroupMessageFilter.vue?3a66","webpack:///./src/elements/MultiselectInput.vue?4b48","webpack:///./node_modules/@popperjs/core/lib/dom-utils/getWindow.js","webpack:///./node_modules/@popperjs/core/lib/dom-utils/instanceOf.js","webpack:///./node_modules/@popperjs/core/lib/utils/math.js","webpack:///./node_modules/@popperjs/core/lib/dom-utils/getBoundingClientRect.js","webpack:///./node_modules/@popperjs/core/lib/dom-utils/getWindowScroll.js","webpack:///./node_modules/@popperjs/core/lib/dom-utils/getHTMLElementScroll.js","webpack:///./node_modules/@popperjs/core/lib/dom-utils/getNodeScroll.js","webpack:///./node_modules/@popperjs/core/lib/dom-utils/getNodeName.js","webpack:///./node_modules/@popperjs/core/lib/dom-utils/getDocumentElement.js","webpack:///./node_modules/@popperjs/core/lib/dom-utils/getWindowScrollBarX.js","webpack:///./node_modules/@popperjs/core/lib/dom-utils/getComputedStyle.js","webpack:///./node_modules/@popperjs/core/lib/dom-utils/isScrollParent.js","webpack:///./node_modules/@popperjs/core/lib/dom-utils/getCompositeRect.js","webpack:///./node_modules/@popperjs/core/lib/dom-utils/getLayoutRect.js","webpack:///./node_modules/@popperjs/core/lib/dom-utils/getParentNode.js","webpack:///./node_modules/@popperjs/core/lib/dom-utils/getScrollParent.js","webpack:///./node_modules/@popperjs/core/lib/dom-utils/listScrollParents.js","webpack:///./node_modules/@popperjs/core/lib/dom-utils/isTableElement.js","webpack:///./node_modules/@popperjs/core/lib/dom-utils/getOffsetParent.js","webpack:///./node_modules/@popperjs/core/lib/enums.js","webpack:///./node_modules/@popperjs/core/lib/utils/orderModifiers.js","webpack:///./node_modules/@popperjs/core/lib/utils/debounce.js","webpack:///./node_modules/@popperjs/core/lib/utils/mergeByName.js","webpack:///./node_modules/@popperjs/core/lib/createPopper.js","webpack:///./node_modules/@popperjs/core/lib/modifiers/eventListeners.js","webpack:///./node_modules/@popperjs/core/lib/utils/getBasePlacement.js","webpack:///./node_modules/@popperjs/core/lib/utils/getVariation.js","webpack:///./node_modules/@popperjs/core/lib/utils/getMainAxisFromPlacement.js","webpack:///./node_modules/@popperjs/core/lib/utils/computeOffsets.js","webpack:///./node_modules/@popperjs/core/lib/modifiers/popperOffsets.js","webpack:///./node_modules/@popperjs/core/lib/modifiers/computeStyles.js","webpack:///./node_modules/@popperjs/core/lib/modifiers/applyStyles.js","webpack:///./node_modules/@popperjs/core/lib/modifiers/offset.js","webpack:///./node_modules/@popperjs/core/lib/utils/getOppositePlacement.js","webpack:///./node_modules/@popperjs/core/lib/utils/getOppositeVariationPlacement.js","webpack:///./node_modules/@popperjs/core/lib/dom-utils/getViewportRect.js","webpack:///./node_modules/@popperjs/core/lib/dom-utils/getDocumentRect.js","webpack:///./node_modules/@popperjs/core/lib/dom-utils/contains.js","webpack:///./node_modules/@popperjs/core/lib/utils/rectToClientRect.js","webpack:///./node_modules/@popperjs/core/lib/dom-utils/getClippingRect.js","webpack:///./node_modules/@popperjs/core/lib/utils/getFreshSideObject.js","webpack:///./node_modules/@popperjs/core/lib/utils/mergePaddingObject.js","webpack:///./node_modules/@popperjs/core/lib/utils/expandToHashMap.js","webpack:///./node_modules/@popperjs/core/lib/utils/detectOverflow.js","webpack:///./node_modules/@popperjs/core/lib/utils/computeAutoPlacement.js","webpack:///./node_modules/@popperjs/core/lib/modifiers/flip.js","webpack:///./node_modules/@popperjs/core/lib/utils/getAltAxis.js","webpack:///./node_modules/@popperjs/core/lib/utils/within.js","webpack:///./node_modules/@popperjs/core/lib/modifiers/preventOverflow.js","webpack:///./node_modules/@popperjs/core/lib/modifiers/arrow.js","webpack:///./node_modules/@popperjs/core/lib/modifiers/hide.js","webpack:///./node_modules/@popperjs/core/lib/popper.js","webpack:///./src/elements/MultiselectInput.vue","webpack:///./src/elements/MultiselectInput.vue?21bb","webpack:///./src/elements/MultiselectInput.vue?264e","webpack:///./src/components/Communication/GroupMessageCoachFilter.vue?3b7f","webpack:///./src/components/Communication/GroupMessageCoachFilter.vue","webpack:///./src/components/Communication/GroupMessageCoachFilter.vue?1fe1","webpack:///./src/components/Communication/GroupMessageCoachFilter.vue?a5f9","webpack:///./src/components/Communication/GroupMessageFilter.vue","webpack:///./src/components/Communication/GroupMessageFilter.vue?6137","webpack:///./src/components/Communication/GroupMessageFilter.vue?3264","webpack:///./src/components/Communication/GroupMessageEditor.vue?131b","webpack:///./src/components/Communication/MessageBodyEditor.vue?c332","webpack:///./src/components/Communication/MessageBodyEditor.vue","webpack:///./src/components/Communication/MessageBodyEditor.vue?441b","webpack:///./src/components/Communication/MessageBodyEditor.vue?ff00","webpack:///./src/components/Communication/GroupMessageEditor.vue","webpack:///./src/components/Communication/GroupMessageEditor.vue?9bff","webpack:///./src/components/Communication/GroupMessageEditor.vue?2fe0","webpack:///./src/components/Communication/GroupMessageSubject.vue?7f4a","webpack:///./src/components/Communication/GroupMessageSubject.vue","webpack:///./src/components/Communication/GroupMessageSubject.vue?5e16","webpack:///./src/components/Communication/GroupMessageSubject.vue?1aed","webpack:///./src/models/GroupMessageParameters.ts","webpack:///./src/lib/support/components/GroupMessage/Boilerplates.ts","webpack:///./src/views/Programs/Communications/GroupMessages.vue","webpack:///./src/views/Programs/Communications/GroupMessages.vue?a0ca","webpack:///./src/views/Programs/Communications/GroupMessages.vue?3fda","webpack:///./src/views/Programs/Communications/ext/RecipientGroups.ts","webpack:///./src/views/Programs/Communications/model/Recipients.ts","webpack:///./src/components/CommunicationModal.vue?62a9"],"names":["useProgramType","type","getters","leagueAbstraction","programType","useIsRunningChallenge","UPWARDRUNNING","gsm7bitChars","gsm7bitExChar","gsm7bitRegExp","RegExp","gsm7bitExRegExp","gsm7bitExOnlyRegExp","detectEncoding","text","match","GSM_7BIT","GSM_7BIT_EX","UTF16","countGsm7bitEx","results","char","push","length","messageLength","multiMessageLength","encoding","perMessage","messages","Math","ceil","remaining","perMultiMessage","t","e","module","exports","self","n","o","i","l","call","m","c","d","Object","defineProperty","enumerable","get","r","Symbol","toStringTag","value","__esModule","create","bind","default","prototype","hasOwnProperty","p","s","iterator","constructor","configurable","writable","Array","isArray","toString","from","TypeError","a","props","autoscroll","Boolean","watch","typeAheadPointer","this","maybeAdjustScroll","methods","$refs","dropdownMenu","children","getDropdownViewport","getBoundingClientRect","top","bottom","height","scrollTop","offsetTop","u","data","filteredOptions","selectable","typeAheadUp","typeAheadDown","typeAheadSelect","select","loading","mutableLoading","search","$emit","toggleLoading","arguments","h","options","render","staticRenderFns","_compiled","functional","_scopeId","$vnode","ssrContext","parent","__VUE_SSR_CONTEXT__","_registeredComponents","add","_ssrRegister","$root","$options","shadowRoot","_injectStyles","beforeCreate","concat","Deselect","$createElement","_self","_c","attrs","xmlns","width","OpenIndicator","f","inserted","context","appendToBody","toggle","left","window","scrollX","pageXOffset","scrollY","pageYOffset","unbindPosition","calculatePosition","document","body","appendChild","unbind","parentNode","removeChild","y","keys","sort","forEach","JSON","stringify","b","g","v","getOwnPropertySymbols","filter","getOwnPropertyDescriptor","apply","getOwnPropertyDescriptors","defineProperties","_","components","mixins","directives","disabled","clearable","searchable","multiple","placeholder","String","transition","clearSearchOnSelect","closeOnSelect","label","autocomplete","reduce","Function","getOptionLabel","console","warn","getOptionKey","id","onTab","selectOnTab","isComposing","taggable","tabindex","Number","pushTags","filterable","filterBy","toLowerCase","indexOf","createOption","optionList","resetOnOptionsChange","validator","includes","clearSearchOnBlur","noDrop","inputId","dir","selectOnKeyCodes","searchInputQuerySelector","mapKeydown","style","uid","open","pushedTags","_value","selectedValue","clearSelection","isTrackingValues","setInternalValueFromOptions","created","$on","pushTag","$data","map","findOptionFromReducedValue","isOptionSelected","optionExists","updateValue","onAfterSelect","deselect","optionComparator","searchEl","blur","toggleDropdown","target","preventDefault","deselectButtons","clearButton","some","contains","focus","find","closeSearchOptions","maybeDeleteValue","slice","normalizeOptionForSlot","onEscape","onSearchBlur","mousedown","searching","onSearchFocus","onMousedown","onMouseUp","onSearchKeyDown","8","9","27","38","40","keyCode","computed","propsData","$scopedSlots","selectedOptions","querySelector","scope","attributes","searchPlaceholder","readonly","ref","dropdownOpen","events","compositionstart","compositionend","keydown","input","spinner","noOptions","openIndicator","role","class","listHeader","listFooter","header","footer","childComponents","stateClasses","isValueEmpty","unshift","showClearButton","O","staticClass","_t","_v","on","_l","key","_s","refInFor","title","click","tag","_e","option","_g","_b","name","rawName","expression","mouseup","mouseover","stopPropagation","staticStyle","display","visibility","w","ajax","pointer","pointerScroll","_vm","_h","model","callback","$$v","show","message","recipientCount","domProps","summaryMessage","copyAddress","wasCopied","item","subject","sanitizedMessage","isPreview","sendingResults","slot","$event","send","dateFmt","formatTemplate","format","Date","copyAddresses","copyingAddress","execCommand","csvRecipients","individualRecipients","clipboardData","setData","addEventListener","copyEmailAddress","val","msg","messageBody","allowedTags","defaults","thirdPartyResponse","dateMsg","verbTense","plural","dt","sentDate","messageType","required","Modal","Loading","Alert","component","recipientGroups","group","getRecipientClass","contact","isEmailValid","email","re","InputLabel","channel","EMAIL","setup","isRunningChallenge","isEmailChannel","groups","selectedGroups","store","communications","messagePreview","v4","createRecipient","getAdditionalRecipients","delimitedRecipients","toDelimited","split","individualsRecreational","messagePreviewRecipients","to","individualsRunning","selectedRecipients","recipients","recipient","isSelected","phone","individuals","recipientValid","MessageChannelTypes","GroupMessageTypes","this$1","_m","hideAll","groupMessageType","filters","setFilters","filtersLoading","scopedSlots","_u","fn","invalid","errors","validate","hideSubjectLine","isFiltersLoading","preview","actionText","toggleSendDrop","showSendDrop","scheduleSend","previewData","isSendingEmailFromPreview","sendMessageFromModal","showPreview","showEmailConfirmationModal","sendCommunicationOn","viewScheduled","sendCommunicationOnFormatted","showScheduleSendModal","datePicked","list","emitValue","descriptiveText","GroupMessageTokens","Map","RadioGroupInput","PAGELINK","ctx","ROSTER","emit","SMS","allDivisions","divisionId","teams","teamIds","coach","prependIcon","appendIcon","elementId","itemsList","textPropertyName","listDirectionUp","withPopper","enabled","handleChange","selected","getWindow","node","ownerDocument","defaultView","isElement","OwnElement","Element","isHTMLElement","HTMLElement","isShadowRoot","ShadowRoot","max","min","round","element","includeScale","rect","scaleX","scaleY","offsetHeight","offsetWidth","right","x","getWindowScroll","win","scrollLeft","getHTMLElementScroll","getNodeScroll","getNodeName","nodeName","getDocumentElement","documentElement","getWindowScrollBarX","getComputedStyle","isScrollParent","_getComputedStyle","overflow","overflowX","overflowY","test","isElementScaled","getCompositeRect","elementOrVirtualElement","offsetParent","isFixed","isOffsetParentAnElement","offsetParentIsScaled","scroll","offsets","clientLeft","clientTop","getLayoutRect","clientRect","abs","offsetLeft","getParentNode","assignedSlot","host","getScrollParent","listScrollParents","_element$ownerDocumen","scrollParent","isBody","visualViewport","updatedList","isTableElement","getTrueOffsetParent","position","getContainingBlock","isFirefox","navigator","userAgent","isIE","elementCss","currentNode","css","transform","perspective","contain","willChange","getOffsetParent","auto","basePlacements","start","end","viewport","variationPlacements","acc","placement","beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite","modifierPhases","order","modifiers","visited","Set","result","modifier","requires","requiresIfExists","dep","has","depModifier","set","orderModifiers","orderedModifiers","phase","debounce","pending","Promise","resolve","then","undefined","mergeByName","merged","current","existing","assign","DEFAULT_OPTIONS","strategy","areValidElements","_len","args","_key","popperGenerator","generatorOptions","_generatorOptions","_generatorOptions$def","defaultModifiers","_generatorOptions$def2","defaultOptions","reference","popper","state","modifiersData","elements","styles","effectCleanupFns","isDestroyed","instance","setOptions","setOptionsAction","cleanupModifierEffects","scrollParents","contextElement","runModifierEffects","update","forceUpdate","_state$elements","rects","reset","index","_state$orderedModifie","_state$orderedModifie2","_options","destroy","_ref3","_ref3$options","effect","cleanupFn","noopFn","onFirstUpdate","passive","_ref","_options$scroll","_options$resize","resize","removeEventListener","getBasePlacement","getVariation","getMainAxisFromPlacement","computeOffsets","basePlacement","variation","commonX","commonY","mainAxis","len","unsetSides","roundOffsetsByDPR","dpr","devicePixelRatio","mapToStyles","_ref2","_Object$assign2","popperRect","gpuAcceleration","adaptive","roundOffsets","_offsets$x","_offsets$y","hasX","hasY","sideX","sideY","heightProp","widthProp","offsetY","offsetX","_Object$assign","commonStyles","_ref4","computeStyles","_ref5","_options$gpuAccelerat","_options$adaptive","_options$roundOffsets","popperOffsets","arrow","applyStyles","removeAttribute","setAttribute","initialStyles","margin","styleProperties","property","attribute","distanceAndSkiddingToXY","offset","invertDistance","skidding","distance","_options$offset","_data$state$placement","hash","getOppositePlacement","replace","matched","getOppositeVariationPlacement","getViewportRect","html","clientWidth","clientHeight","getDocumentRect","winScroll","scrollWidth","scrollHeight","direction","child","rootNode","getRootNode","next","isSameNode","rectToClientRect","getInnerBoundingClientRect","getClientRectFromMixedType","clippingParent","getClippingParents","clippingParents","canEscapeClipping","clipperElement","getClippingRect","boundary","rootBoundary","mainClippingParents","firstClippingParent","clippingRect","accRect","getFreshSideObject","mergePaddingObject","paddingObject","expandToHashMap","hashMap","detectOverflow","_options$placement","_options$boundary","_options$rootBoundary","_options$elementConte","elementContext","_options$altBoundary","altBoundary","_options$padding","padding","altContext","clippingClientRect","referenceClientRect","popperClientRect","elementClientRect","overflowOffsets","offsetData","multiply","axis","computeAutoPlacement","flipVariations","_options$allowedAutoP","allowedAutoPlacements","placements","allowedPlacements","overflows","getExpandedFallbackPlacements","oppositePlacement","flip","_skip","_options$mainAxis","checkMainAxis","_options$altAxis","altAxis","checkAltAxis","specifiedFallbackPlacements","fallbackPlacements","_options$flipVariatio","preferredPlacement","isBasePlacement","referenceRect","checksMap","makeFallbackChecks","firstFittingPlacement","_basePlacement","isStartVariation","isVertical","mainVariationSide","altVariationSide","checks","every","check","numberOfChecks","_loop","_i","fittingPlacement","_ret","getAltAxis","within","withinMaxClamp","preventOverflow","_options$tether","tether","_options$tetherOffset","tetherOffset","tetherOffsetValue","normalizedTetherOffsetValue","offsetModifierState","_offsetModifierState$","mainSide","altSide","additive","minLen","maxLen","arrowElement","arrowRect","arrowPaddingObject","arrowPaddingMin","arrowPaddingMax","arrowLen","minOffset","maxOffset","arrowOffsetParent","clientOffset","offsetModifierValue","tetherMin","tetherMax","preventedOffset","_offsetModifierState$2","_mainSide","_altSide","_offset","_min","_max","isOriginSide","_offsetModifierValue","_tetherMin","_tetherMax","_preventedOffset","_state$modifiersData$","minProp","maxProp","endDiff","startDiff","clientSize","centerToReference","center","axisProp","centerOffset","_options$element","getSideOffsets","preventedOffsets","isAnySideFullyClipped","side","hide","referenceOverflow","popperAltOverflow","referenceClippingOffsets","popperEscapeOffsets","isReferenceHidden","hasPopperEscaped","eventListeners","valuePropertyName","BaseInputWrapper","vSelect","guid","getKeys","Reflect","getObjects","output","dropdownList","$el","classList","immediate","VSelect","CoachFilters","ALL","HEAD","getEmptyFilterSelection","division","typeProgramId","allTeams","emitter","loadData","filterSelections","emitFilters","all","retrieveDivisions","retrieveTeams","showFilter","divisionsClient","retrieveAll","upwId","teamsClient","retrieveLeagueTeams","leagueID","isRoster","programTypeId","divisions","divisionID","typeProgramID","teamName","$route","params","groupType","SelectInput","MultiselectInput","GroupMessageCoachFilter","instructions","readOnly","maxCharactersReached","maxCharacterCount","charactersRemaining","messageChannelTypes","maxPages","MemoInput","HtmlEditor","buttonText","RecipientPreviewList","MessageBodyEditor","hideSubject","TextInput","getEmptyGroupMessageParameters","AccountNumber","DivisionID","TeamID","TypeProgramID","CommunicationTypeID","HeadCoachOnly","MessageBody","PreviewOnly","SendCommunicationOn","MinutesToAdd","SubjectLine","rosterEmailBoilerplate","rosterSmsBoilerplate","teamPageEmailBoilerplate","teamPageSmsBoilerplate","isPreviewing","isSending","messageID","communicationsClient","getQueuedGroupMessage","parseInt","recipientCriteria","headCoachOnly","callAPI","form","reportValidity","formIsValid","composePreviewMessageData","action","composeGroupMessageParameters","sendTeamPageLinkGroupMessage","sendTeamRosterGroupMessage","accountNumber","toUpperCase","minutesToAdd","join","Error","contacts","conactList","groupMessageToken","Contact","flat","$nextTick","$router","valid","PARENTS","commit","setSelectedGroups","COACHES","setMessageBodyBoilerplate","clearMessageInformation","messageId","now","sendOn","diff","toLocaleTimeString","year","month","day","hour","minute","firstAccountNumber","namespace","SectionHeader","GroupMessageSelector","GroupMessageChannel","GroupMessageEditor","GroupMessageFilters","CommunicationModal","InfoModal","VeeValidateForm","ModalDateTimePicker","GroupMessageSubject","RecipientTypes","getRecipientGroups","retval","optionText","optionValue","isUpwardSelect","refLabel","REFEREES","COMMISSIONERS","OTHERS","getEmptyRecipients","getEmptyRecipient"],"mappings":"yIAAA,0EAI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,OAvMZ,GAA0C,QAExC,gBADC,eAAO,OAAsBC,mBAAoB,CAAEC,UAAW,U,qCAwBlD,gBAAZ,eAAI,S,4BAgML,gBADC,eAAM,qB,uCAaN,MAGD,gBADC,eAAM,Y,8BAIN,MA3OkB,GAAY,gBAhBhC,eAAU,CACT3yB,WAAY,CACVwM,UAAA,KACAomB,gBAAA,KACAC,uBACAC,sBACAC,mBAAA,GACAC,oBAAA,GACAC,sBAAA,KACAC,aAAA,KACAC,kBAAA,KACAC,uBAAA,KACAC,wBAEFpzB,OAAQ,CAAC,gBAEU,cCvLuZ,MCOxa,GAAY,eACd,GACA9D,EACAC,GACA,EACA,KACA,KACA,MAIa,gB,kEClBf,wEAQYk3B,EARZ,YAkBM,SAAUC,IACd,IAAMC,EAAS,GAWf,OAVAA,EAAOz8B,KAAK,CAAE08B,WAAYH,EAAe5B,QAASgC,YAAaJ,EAAe5B,UAC9E8B,EAAOz8B,KAAK,CAAE08B,WAAYH,EAAezB,QAAS6B,YAAaJ,EAAezB,UACzE,OAAMl8B,QAAQC,kBAAkB+9B,gBACnCH,EAAOz8B,KAAK,CACV08B,WAAY,OAAM99B,QAAQC,kBAAkBg+B,SAAW,IACvDF,YAAaJ,EAAeO,WAGhCL,EAAOz8B,KAAK,CAAE08B,WAAYH,EAAeQ,cAAeJ,YAAaJ,EAAeQ,gBACpFN,EAAOz8B,KAAK,CAAE08B,WAAYH,EAAeS,OAAQL,YAAaJ,EAAeS,SACtEP,GAtBT,SAAYF,GACV,iCACA,uBACA,yBACA,mCACA,gCALF,CAAYA,MAAc,M,kCCMpB,SAAUU,IACd,MAAO,CACLvmB,eAAgB,GAChBQ,YAAa,GACbO,WAAY,IAIV,SAAUylB,IACd,MAAO,CACL7yB,GAAI,GACJwH,KAAM,GACNoE,MAAO,GACP2B,MAAO,GACPD,YAAY,GAdhB,qE,yDCdA","file":"js/chunk-594cd3a1.ea819984.js","sourcesContent":["import { UpwardOpportunityTypes } from './upwardOpportunityTypes'\nimport store from '@/store'\nimport { computed } from '@vue/composition-api'\n\nexport const useProgramType = (type: UpwardOpportunityTypes) => {\n return computed(() => store.getters.leagueAbstraction.programType === type)\n}\n\n// Reactive convenience methods for common program type checks\nexport const useIsLeague = () => useProgramType(UpwardOpportunityTypes.LEAGUE)\nexport const useIsCamp = () => useProgramType(UpwardOpportunityTypes.CAMP)\nexport const useIsClinic = () => useProgramType(UpwardOpportunityTypes.CLINIC)\nexport const useIsRunningChallenge = () => useProgramType(UpwardOpportunityTypes.UPWARDRUNNING)\nexport const useIsUpwardSelect = () => useProgramType(UpwardOpportunityTypes.UPWARDSELECT)\nexport const useIsConnect = () => useProgramType(UpwardOpportunityTypes.CONNECT)\nexport const useIsLicensing = () => useProgramType(UpwardOpportunityTypes.LICENSING)\n","export * from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-2!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MultiselectInput.vue?vue&type=style&index=0&lang=css&\"","const gsm7bitChars = `@£$¥èéùìòÇØøÅåΔ_ΦΓΛΩΠΨΣΘΞÆæßÉ !\\\\\\\"#¤%&'()*+,-./0123456789:;<=>?¡ABCDEFGHIJKLMNOPQRSTUVWXYZÄÖÑܧ¿abcdefghijklmnopqrstuvwxyzäöñüà`\nconst gsm7bitExChar = `\\\\^{}\\\\\\\\\\\\[~\\\\]|€\\\\n\\\\r`\nconst gsm7bitRegExp = RegExp(`^[${gsm7bitChars}]*$`)\nconst gsm7bitExRegExp = RegExp(`^[${gsm7bitChars + gsm7bitExChar}]*$`)\nconst gsm7bitExOnlyRegExp = RegExp(`^[\\\\${gsm7bitExChar}]*$`)\n\nfunction detectEncoding(text: string): string {\n switch (false) {\n case text.match(gsm7bitRegExp) === null:\n return GSM_7BIT\n case text.match(gsm7bitExRegExp) === null:\n return GSM_7BIT_EX\n default:\n return UTF16\n }\n}\n\nfunction countGsm7bitEx(text: string): number {\n const results: string[] = []\n\n for (const char of text) {\n if (char.match(gsm7bitExOnlyRegExp) !== null) {\n results.push(char)\n }\n }\n\n return results.length\n}\n\nconst GSM_7BIT = 'GSM_7BIT'\nconst GSM_7BIT_EX = 'GSM_7BIT_EX'\nconst UTF16 = 'UTF16'\n\nconst messageLength: MessageLengthTypes = {\n GSM_7BIT: 160,\n GSM_7BIT_EX: 160,\n UTF16: 70,\n}\nconst multiMessageLength: MessageLengthTypes = {\n GSM_7BIT: 153,\n GSM_7BIT_EX: 153,\n UTF16: 67,\n}\n\ninterface MessageLengthTypes {\n [key: string]: number\n}\n\nexport interface CounterResult {\n encoding: string\n length: number\n messages: number\n perMessage: number\n perMultiMessage: number\n remaining: number\n}\n\nexport default function (text: string): CounterResult {\n const encoding = detectEncoding(text)\n let length = text.length\n if (encoding === GSM_7BIT_EX) {\n length += countGsm7bitEx(text)\n }\n\n let perMessage = messageLength[encoding]\n if (length > perMessage) {\n perMessage = multiMessageLength[encoding]\n }\n\n const messages = Math.ceil(length / perMessage)\n let remaining = perMessage * messages - length\n if (remaining === 0 && messages === 0) {\n remaining = perMessage\n }\n\n return { encoding, length, perMessage, perMultiMessage: multiMessageLength[encoding], remaining, messages }\n}\n","!function(t,e){\"object\"==typeof exports&&\"object\"==typeof module?module.exports=e():\"function\"==typeof define&&define.amd?define([],e):\"object\"==typeof exports?exports.VueSelect=e():t.VueSelect=e()}(\"undefined\"!=typeof self?self:this,(function(){return function(t){var e={};function n(o){if(e[o])return e[o].exports;var i=e[o]={i:o,l:!1,exports:{}};return t[o].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,o){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:o})},n.r=function(t){\"undefined\"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:\"Module\"}),Object.defineProperty(t,\"__esModule\",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&\"object\"==typeof t&&t&&t.__esModule)return t;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,\"default\",{enumerable:!0,value:t}),2&e&&\"string\"!=typeof t)for(var i in t)n.d(o,i,function(e){return t[e]}.bind(null,i));return o},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,\"a\",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p=\"/\",n(n.s=8)}([function(t,e,n){var o=n(4),i=n(5),s=n(6);t.exports=function(t){return o(t)||i(t)||s()}},function(t,e){function n(e){return\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?t.exports=n=function(t){return typeof t}:t.exports=n=function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},n(e)}t.exports=n},function(t,e,n){},function(t,e){t.exports=function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}},function(t,e){t.exports=function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);en.bottom)return this.$refs.dropdownMenu.scrollTop=e.offsetTop-(n.height-r)}},getDropdownViewport:function(){return this.$refs.dropdownMenu?this.$refs.dropdownMenu.getBoundingClientRect():{height:0,top:0,bottom:0}}}},u={data:function(){return{typeAheadPointer:-1}},watch:{filteredOptions:function(){for(var t=0;t=0;t--)if(this.selectable(this.filteredOptions[t])){this.typeAheadPointer=t;break}},typeAheadDown:function(){for(var t=this.typeAheadPointer+1;t0&&void 0!==arguments[0]?arguments[0]:null;return this.mutableLoading=null==t?!this.mutableLoading:t}}};function h(t,e,n,o,i,s,r,a){var l,c=\"function\"==typeof t?t.options:t;if(e&&(c.render=e,c.staticRenderFns=n,c._compiled=!0),o&&(c.functional=!0),s&&(c._scopeId=\"data-v-\"+s),r?(l=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||\"undefined\"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(r)},c._ssrRegister=l):i&&(l=a?function(){i.call(this,this.$root.$options.shadowRoot)}:i),l)if(c.functional){c._injectStyles=l;var u=c.render;c.render=function(t,e){return l.call(e),u(t,e)}}else{var p=c.beforeCreate;c.beforeCreate=p?[].concat(p,l):[l]}return{exports:t,options:c}}var d={Deselect:h({},(function(){var t=this.$createElement,e=this._self._c||t;return e(\"svg\",{attrs:{xmlns:\"http://www.w3.org/2000/svg\",width:\"10\",height:\"10\"}},[e(\"path\",{attrs:{d:\"M6.895455 5l2.842897-2.842898c.348864-.348863.348864-.914488 0-1.263636L9.106534.261648c-.348864-.348864-.914489-.348864-1.263636 0L5 3.104545 2.157102.261648c-.348863-.348864-.914488-.348864-1.263636 0L.261648.893466c-.348864.348864-.348864.914489 0 1.263636L3.104545 5 .261648 7.842898c-.348864.348863-.348864.914488 0 1.263636l.631818.631818c.348864.348864.914773.348864 1.263636 0L5 6.895455l2.842898 2.842897c.348863.348864.914772.348864 1.263636 0l.631818-.631818c.348864-.348864.348864-.914489 0-1.263636L6.895455 5z\"}})])}),[],!1,null,null,null).exports,OpenIndicator:h({},(function(){var t=this.$createElement,e=this._self._c||t;return e(\"svg\",{attrs:{xmlns:\"http://www.w3.org/2000/svg\",width:\"14\",height:\"10\"}},[e(\"path\",{attrs:{d:\"M9.211364 7.59931l4.48338-4.867229c.407008-.441854.407008-1.158247 0-1.60046l-.73712-.80023c-.407008-.441854-1.066904-.441854-1.474243 0L7 5.198617 2.51662.33139c-.407008-.441853-1.066904-.441853-1.474243 0l-.737121.80023c-.407008.441854-.407008 1.158248 0 1.600461l4.48338 4.867228L7 10l2.211364-2.40069z\"}})])}),[],!1,null,null,null).exports},f={inserted:function(t,e,n){var o=n.context;if(o.appendToBody){var i=o.$refs.toggle.getBoundingClientRect(),s=i.height,r=i.top,a=i.left,l=i.width,c=window.scrollX||window.pageXOffset,u=window.scrollY||window.pageYOffset;t.unbindPosition=o.calculatePosition(t,o,{width:l+\"px\",left:c+a+\"px\",top:u+r+s+\"px\"}),document.body.appendChild(t)}},unbind:function(t,e,n){n.context.appendToBody&&(t.unbindPosition&&\"function\"==typeof t.unbindPosition&&t.unbindPosition(),t.parentNode&&t.parentNode.removeChild(t))}};var y=function(t){var e={};return Object.keys(t).sort().forEach((function(n){e[n]=t[n]})),JSON.stringify(e)},b=0;var g=function(){return++b};function v(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,o)}return n}function m(t){for(var e=1;e-1}},filter:{type:Function,default:function(t,e){var n=this;return t.filter((function(t){var o=n.getOptionLabel(t);return\"number\"==typeof o&&(o=o.toString()),n.filterBy(t,o,e)}))}},createOption:{type:Function,default:function(t){return\"object\"===r()(this.optionList[0])?l()({},this.label,t):t}},resetOnOptionsChange:{default:!1,validator:function(t){return[\"function\",\"boolean\"].includes(r()(t))}},clearSearchOnBlur:{type:Function,default:function(t){var e=t.clearSearchOnSelect,n=t.multiple;return e&&!n}},noDrop:{type:Boolean,default:!1},inputId:{type:String},dir:{type:String,default:\"auto\"},selectOnTab:{type:Boolean,default:!1},selectOnKeyCodes:{type:Array,default:function(){return[13]}},searchInputQuerySelector:{type:String,default:\"[type=search]\"},mapKeydown:{type:Function,default:function(t,e){return t}},appendToBody:{type:Boolean,default:!1},calculatePosition:{type:Function,default:function(t,e,n){var o=n.width,i=n.top,s=n.left;t.style.top=i,t.style.left=s,t.style.width=o}}},data:function(){return{uid:g(),search:\"\",open:!1,isComposing:!1,pushedTags:[],_value:[]}},watch:{options:function(t,e){var n=this;!this.taggable&&(\"function\"==typeof n.resetOnOptionsChange?n.resetOnOptionsChange(t,e,n.selectedValue):n.resetOnOptionsChange)&&this.clearSelection(),this.value&&this.isTrackingValues&&this.setInternalValueFromOptions(this.value)},value:function(t){this.isTrackingValues&&this.setInternalValueFromOptions(t)},multiple:function(){this.clearSelection()},open:function(t){this.$emit(t?\"open\":\"close\")}},created:function(){this.mutableLoading=this.loading,void 0!==this.value&&this.isTrackingValues&&this.setInternalValueFromOptions(this.value),this.$on(\"option:created\",this.pushTag)},methods:{setInternalValueFromOptions:function(t){var e=this;Array.isArray(t)?this.$data._value=t.map((function(t){return e.findOptionFromReducedValue(t)})):this.$data._value=this.findOptionFromReducedValue(t)},select:function(t){this.$emit(\"option:selecting\",t),this.isOptionSelected(t)||(this.taggable&&!this.optionExists(t)&&this.$emit(\"option:created\",t),this.multiple&&(t=this.selectedValue.concat(t)),this.updateValue(t),this.$emit(\"option:selected\",t)),this.onAfterSelect(t)},deselect:function(t){var e=this;this.$emit(\"option:deselecting\",t),this.updateValue(this.selectedValue.filter((function(n){return!e.optionComparator(n,t)}))),this.$emit(\"option:deselected\",t)},clearSelection:function(){this.updateValue(this.multiple?[]:null)},onAfterSelect:function(t){this.closeOnSelect&&(this.open=!this.open,this.searchEl.blur()),this.clearSearchOnSelect&&(this.search=\"\")},updateValue:function(t){var e=this;void 0===this.value&&(this.$data._value=t),null!==t&&(t=Array.isArray(t)?t.map((function(t){return e.reduce(t)})):this.reduce(t)),this.$emit(\"input\",t)},toggleDropdown:function(t){var e=t.target!==this.searchEl;e&&t.preventDefault();var n=[].concat(i()(this.$refs.deselectButtons||[]),i()([this.$refs.clearButton]||!1));void 0===this.searchEl||n.filter(Boolean).some((function(e){return e.contains(t.target)||e===t.target}))?t.preventDefault():this.open&&e?this.searchEl.blur():this.disabled||(this.open=!0,this.searchEl.focus())},isOptionSelected:function(t){var e=this;return this.selectedValue.some((function(n){return e.optionComparator(n,t)}))},optionComparator:function(t,e){return this.getOptionKey(t)===this.getOptionKey(e)},findOptionFromReducedValue:function(t){var e=this,n=[].concat(i()(this.options),i()(this.pushedTags)).filter((function(n){return JSON.stringify(e.reduce(n))===JSON.stringify(t)}));return 1===n.length?n[0]:n.find((function(t){return e.optionComparator(t,e.$data._value)}))||t},closeSearchOptions:function(){this.open=!1,this.$emit(\"search:blur\")},maybeDeleteValue:function(){if(!this.searchEl.value.length&&this.selectedValue&&this.selectedValue.length&&this.clearable){var t=null;this.multiple&&(t=i()(this.selectedValue.slice(0,this.selectedValue.length-1))),this.updateValue(t)}},optionExists:function(t){var e=this;return this.optionList.some((function(n){return e.optionComparator(n,t)}))},normalizeOptionForSlot:function(t){return\"object\"===r()(t)?t:l()({},this.label,t)},pushTag:function(t){this.pushedTags.push(t)},onEscape:function(){this.search.length?this.search=\"\":this.searchEl.blur()},onSearchBlur:function(){if(!this.mousedown||this.searching){var t=this.clearSearchOnSelect,e=this.multiple;return this.clearSearchOnBlur({clearSearchOnSelect:t,multiple:e})&&(this.search=\"\"),void this.closeSearchOptions()}this.mousedown=!1,0!==this.search.length||0!==this.options.length||this.closeSearchOptions()},onSearchFocus:function(){this.open=!0,this.$emit(\"search:focus\")},onMousedown:function(){this.mousedown=!0},onMouseUp:function(){this.mousedown=!1},onSearchKeyDown:function(t){var e=this,n=function(t){return t.preventDefault(),!e.isComposing&&e.typeAheadSelect()},o={8:function(t){return e.maybeDeleteValue()},9:function(t){return e.onTab()},27:function(t){return e.onEscape()},38:function(t){return t.preventDefault(),e.typeAheadUp()},40:function(t){return t.preventDefault(),e.typeAheadDown()}};this.selectOnKeyCodes.forEach((function(t){return o[t]=n}));var i=this.mapKeydown(o,this);if(\"function\"==typeof i[t.keyCode])return i[t.keyCode](t)}},computed:{isTrackingValues:function(){return void 0===this.value||this.$options.propsData.hasOwnProperty(\"reduce\")},selectedValue:function(){var t=this.value;return this.isTrackingValues&&(t=this.$data._value),t?[].concat(t):[]},optionList:function(){return this.options.concat(this.pushTags?this.pushedTags:[])},searchEl:function(){return this.$scopedSlots.search?this.$refs.selectedOptions.querySelector(this.searchInputQuerySelector):this.$refs.search},scope:function(){var t=this,e={search:this.search,loading:this.loading,searching:this.searching,filteredOptions:this.filteredOptions};return{search:{attributes:m({disabled:this.disabled,placeholder:this.searchPlaceholder,tabindex:this.tabindex,readonly:!this.searchable,id:this.inputId,\"aria-autocomplete\":\"list\",\"aria-labelledby\":\"vs\".concat(this.uid,\"__combobox\"),\"aria-controls\":\"vs\".concat(this.uid,\"__listbox\"),ref:\"search\",type:\"search\",autocomplete:this.autocomplete,value:this.search},this.dropdownOpen&&this.filteredOptions[this.typeAheadPointer]?{\"aria-activedescendant\":\"vs\".concat(this.uid,\"__option-\").concat(this.typeAheadPointer)}:{}),events:{compositionstart:function(){return t.isComposing=!0},compositionend:function(){return t.isComposing=!1},keydown:this.onSearchKeyDown,blur:this.onSearchBlur,focus:this.onSearchFocus,input:function(e){return t.search=e.target.value}}},spinner:{loading:this.mutableLoading},noOptions:{search:this.search,loading:this.loading,searching:this.searching},openIndicator:{attributes:{ref:\"openIndicator\",role:\"presentation\",class:\"vs__open-indicator\"}},listHeader:e,listFooter:e,header:m({},e,{deselect:this.deselect}),footer:m({},e,{deselect:this.deselect})}},childComponents:function(){return m({},d,{},this.components)},stateClasses:function(){return{\"vs--open\":this.dropdownOpen,\"vs--single\":!this.multiple,\"vs--searching\":this.searching&&!this.noDrop,\"vs--searchable\":this.searchable&&!this.noDrop,\"vs--unsearchable\":!this.searchable,\"vs--loading\":this.mutableLoading,\"vs--disabled\":this.disabled}},searching:function(){return!!this.search},dropdownOpen:function(){return!this.noDrop&&(this.open&&!this.mutableLoading)},searchPlaceholder:function(){if(this.isValueEmpty&&this.placeholder)return this.placeholder},filteredOptions:function(){var t=[].concat(this.optionList);if(!this.filterable&&!this.taggable)return t;var e=this.search.length?this.filter(t,this.search,this):t;if(this.taggable&&this.search.length){var n=this.createOption(this.search);this.optionExists(n)||e.unshift(n)}return e},isValueEmpty:function(){return 0===this.selectedValue.length},showClearButton:function(){return!this.multiple&&this.clearable&&!this.open&&!this.isValueEmpty}}},O=(n(7),h(_,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n(\"div\",{staticClass:\"v-select\",class:t.stateClasses,attrs:{dir:t.dir}},[t._t(\"header\",null,null,t.scope.header),t._v(\" \"),n(\"div\",{ref:\"toggle\",staticClass:\"vs__dropdown-toggle\",attrs:{id:\"vs\"+t.uid+\"__combobox\",role:\"combobox\",\"aria-expanded\":t.dropdownOpen.toString(),\"aria-owns\":\"vs\"+t.uid+\"__listbox\",\"aria-label\":\"Search for option\"},on:{mousedown:function(e){return t.toggleDropdown(e)}}},[n(\"div\",{ref:\"selectedOptions\",staticClass:\"vs__selected-options\"},[t._l(t.selectedValue,(function(e){return t._t(\"selected-option-container\",[n(\"span\",{key:t.getOptionKey(e),staticClass:\"vs__selected\"},[t._t(\"selected-option\",[t._v(\"\\n \"+t._s(t.getOptionLabel(e))+\"\\n \")],null,t.normalizeOptionForSlot(e)),t._v(\" \"),t.multiple?n(\"button\",{ref:\"deselectButtons\",refInFor:!0,staticClass:\"vs__deselect\",attrs:{disabled:t.disabled,type:\"button\",title:\"Deselect \"+t.getOptionLabel(e),\"aria-label\":\"Deselect \"+t.getOptionLabel(e)},on:{click:function(n){return t.deselect(e)}}},[n(t.childComponents.Deselect,{tag:\"component\"})],1):t._e()],2)],{option:t.normalizeOptionForSlot(e),deselect:t.deselect,multiple:t.multiple,disabled:t.disabled})})),t._v(\" \"),t._t(\"search\",[n(\"input\",t._g(t._b({staticClass:\"vs__search\"},\"input\",t.scope.search.attributes,!1),t.scope.search.events))],null,t.scope.search)],2),t._v(\" \"),n(\"div\",{ref:\"actions\",staticClass:\"vs__actions\"},[n(\"button\",{directives:[{name:\"show\",rawName:\"v-show\",value:t.showClearButton,expression:\"showClearButton\"}],ref:\"clearButton\",staticClass:\"vs__clear\",attrs:{disabled:t.disabled,type:\"button\",title:\"Clear Selected\",\"aria-label\":\"Clear Selected\"},on:{click:t.clearSelection}},[n(t.childComponents.Deselect,{tag:\"component\"})],1),t._v(\" \"),t._t(\"open-indicator\",[t.noDrop?t._e():n(t.childComponents.OpenIndicator,t._b({tag:\"component\"},\"component\",t.scope.openIndicator.attributes,!1))],null,t.scope.openIndicator),t._v(\" \"),t._t(\"spinner\",[n(\"div\",{directives:[{name:\"show\",rawName:\"v-show\",value:t.mutableLoading,expression:\"mutableLoading\"}],staticClass:\"vs__spinner\"},[t._v(\"Loading...\")])],null,t.scope.spinner)],2)]),t._v(\" \"),n(\"transition\",{attrs:{name:t.transition}},[t.dropdownOpen?n(\"ul\",{directives:[{name:\"append-to-body\",rawName:\"v-append-to-body\"}],key:\"vs\"+t.uid+\"__listbox\",ref:\"dropdownMenu\",staticClass:\"vs__dropdown-menu\",attrs:{id:\"vs\"+t.uid+\"__listbox\",role:\"listbox\",tabindex:\"-1\"},on:{mousedown:function(e){return e.preventDefault(),t.onMousedown(e)},mouseup:t.onMouseUp}},[t._t(\"list-header\",null,null,t.scope.listHeader),t._v(\" \"),t._l(t.filteredOptions,(function(e,o){return n(\"li\",{key:t.getOptionKey(e),staticClass:\"vs__dropdown-option\",class:{\"vs__dropdown-option--selected\":t.isOptionSelected(e),\"vs__dropdown-option--highlight\":o===t.typeAheadPointer,\"vs__dropdown-option--disabled\":!t.selectable(e)},attrs:{role:\"option\",id:\"vs\"+t.uid+\"__option-\"+o,\"aria-selected\":o===t.typeAheadPointer||null},on:{mouseover:function(n){t.selectable(e)&&(t.typeAheadPointer=o)},mousedown:function(n){n.preventDefault(),n.stopPropagation(),t.selectable(e)&&t.select(e)}}},[t._t(\"option\",[t._v(\"\\n \"+t._s(t.getOptionLabel(e))+\"\\n \")],null,t.normalizeOptionForSlot(e))],2)})),t._v(\" \"),0===t.filteredOptions.length?n(\"li\",{staticClass:\"vs__no-options\"},[t._t(\"no-options\",[t._v(\"Sorry, no matching options.\")],null,t.scope.noOptions)],2):t._e(),t._v(\" \"),t._t(\"list-footer\",null,null,t.scope.listFooter)],2):n(\"ul\",{staticStyle:{display:\"none\",visibility:\"hidden\"},attrs:{id:\"vs\"+t.uid+\"__listbox\",role:\"listbox\"}})]),t._v(\" \"),t._t(\"footer\",null,null,t.scope.footer)],2)}),[],!1,null,null,null).exports),w={ajax:p,pointer:u,pointerScroll:c};n.d(e,\"VueSelect\",(function(){return O})),n.d(e,\"mixins\",(function(){return w}));e.default=O}])}));\n//# sourceMappingURL=vue-select.js.map","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('modal',{attrs:{\"title\":_vm.title},model:{value:(_vm.show),callback:function ($$v) {_vm.show=$$v},expression:\"show\"}},[(_vm.message)?_c('div',{staticClass:\"d-flex flex-column h-100\"},[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-12\"},[_c('div',{staticClass:\"panel panel-default border\",class:{\n 'background-secondary': _vm.message.recipientCount > 0,\n 'bg-danger': _vm.message.recipientCount <= 0,\n }},[_c('div',{staticClass:\"panel-body\"},[_c('p',{staticClass:\"m-0 py-3 text-center\"},[_c('span',{domProps:{\"innerHTML\":_vm._s(_vm.summaryMessage)}})])])])])]),_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-12 mt-4\"},[_c('label',{staticClass:\"text-uppercase\"},[_vm._v(\"To\")]),_c('button',{staticClass:\"btn btn-light float-right btn-xs\",on:{\"click\":_vm.copyAddress}},[_c('i',{staticClass:\"fa fa-copy\"}),_vm._v(\" Copy to Clipboard \")]),_c('alert',{attrs:{\"timeout\":3000,\"type\":\"notice\"},model:{value:(_vm.wasCopied),callback:function ($$v) {_vm.wasCopied=$$v},expression:\"wasCopied\"}},[_c('p',[_vm._v(\"The email addresses were copied to the clipboard.\")])])],1)]),_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-12\"},[_c('div',{staticClass:\"panel panel-default border w-100\"},[_c('div',{staticClass:\"panel-body w-100 p-1 recipients-panel\"},_vm._l((_vm.message.individualRecipients),function(item,i){return _c('div',{key:(\"\" + item + i),staticClass:\"badge no-dismiss bg-light-3 badge-pill mr-2\"},[_vm._v(\" \"+_vm._s(item)+\" \")])}),0)])])]),(_vm.message.subject)?_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-6 mt-4\"},[_c('label',{staticClass:\"text-uppercase\"},[_vm._v(\"Subject\")]),_c('div',[_vm._v(_vm._s(_vm.message.subject))])]),(_vm.message.attachments)?_c('div',{staticClass:\"col-6 mt-4\"},[_c('label',{staticClass:\"text-uppercase\"},[_vm._v(\"Attachment(s)\")]),_vm._l((_vm.message.attachments),function(item,i){return _c('div',{key:(\"\" + item + i)},[_vm._v(\" \"+_vm._s(item)+\" \")])})],2):_vm._e()]):_vm._e(),_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-12 mt-4\"},[_c('label',{staticClass:\"text-uppercase\"},[_vm._v(\"Message\")]),_c('p',{staticClass:\"m-0 text-danger\"},[_vm._v(\"(not editable)\")])])]),_c('div',{staticClass:\"d-flex flex-column h-100 border message\"},[_c('div',{staticClass:\"panel panel-default p-1\"},[_c('div',{staticClass:\"panel-body message-body-panel\"},[(_vm.sanitizedMessage)?_c('span',[_c('p',{staticClass:\"m-0\",domProps:{\"innerHTML\":_vm._s(_vm.sanitizedMessage)}})]):_vm._e()])])]),(!_vm.isPreview)?_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-12 mt-4\"},[_c('label',{staticClass:\"text-uppercase\"},[_vm._v(\"Sending Result\")])])]):_vm._e(),(!_vm.isPreview)?_c('div',{staticClass:\"d-flex flex-column h-100 border message\"},[_c('div',{staticClass:\"panel panel-default p-1\"},[_c('div',{staticClass:\"panel-body message-body-panel\"},[_c('p',{staticClass:\"m-0\",domProps:{\"innerHTML\":_vm._s(_vm.sendingResults)}})])])]):_vm._e()]):_vm._e(),_c('template',{slot:\"footer\"},[_c('button',{staticClass:\"btn btn-light\",on:{\"click\":function($event){_vm.show = false}}},[_vm._v(\"Close\")]),(_vm.isPreview)?_c('button',{staticClass:\"btn btn-success mx-1 px-3\",attrs:{\"type\":\"button\"},on:{\"click\":_vm.send}},[(_vm.sendingEmailInProgress)?_c('loading',{attrs:{\"is-small\":\"\"}}):[_c('i',{staticClass:\"fa fa-paper-plane\"}),_vm._v(\" Send \")]],2):_vm._e()])],2)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","// In preparation for Vue3, this function can be used in lieu of date filter\nimport { format } from 'date-fns'\n\nexport function dateFmt(value: Date | string | null | undefined, formatTemplate = 'MM/dd/yy') {\n if (!value) {\n return ''\n }\n\n return format(new Date(value), formatTemplate)\n}\n","\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nimport Alert from '@/components/Alert.vue'\nimport Modal from '@/components/Modal.vue'\nimport { Component, Vue, Prop } from 'vue-property-decorator'\nimport sanitizeHtml from 'sanitize-html'\nimport { dateFmt } from '@/filters/dateFmt.ts'\nimport { MessageData, getEmptyMessageData } from '@/lib/support/models/Communication/PreviewMessage.ts'\nimport Loading from '@/elements/Loading.vue'\n\n@Component({\n components: {\n Modal,\n Loading,\n Alert,\n },\n})\nexport default class CommunicationModal extends Vue {\n @Prop({ type: Boolean, required: true })\n private readonly value!: boolean\n\n @Prop({ type: Boolean, default: false, required: false })\n private readonly isPreview!: boolean\n\n @Prop({ type: Boolean, default: false, required: false })\n private readonly sendingEmailInProgress!: boolean\n\n @Prop({ type: Object, default: getEmptyMessageData, required: false })\n private readonly message!: MessageData\n\n @Prop({ type: String, required: true })\n private readonly title!: string\n\n private get show() {\n return this.value\n }\n\n private set show(val: boolean) {\n this.$emit('input', val)\n }\n\n copyAddresses = false\n private wasCopied = false\n\n private copyAddress() {\n this.copyAddresses = true\n document.execCommand('copy')\n this.copyAddresses = false\n this.wasCopied = true\n }\n\n copyingAddress = false\n private copyEmailAddress(e: any) {\n if (!this.copyAddresses || this.copyingAddress) {\n return\n }\n this.copyingAddress = true\n\n var csvRecipients = this.message.individualRecipients.reduce((s, a) => `${s},${a}`)\n e.clipboardData.setData('text/plain', csvRecipients)\n\n // This is necessary to prevent the current document selection from\n // being written to the clipboard.\n e.preventDefault()\n this.copyingAddress = false\n }\n\n mounted() {\n document.addEventListener('copy', this.copyEmailAddress)\n }\n\n private get sanitizedMessage() {\n const msg = this.message.messageBody ? this.message.messageBody : ''\n return sanitizeHtml(msg, { allowedTags: sanitizeHtml.defaults.allowedTags.concat('u') })\n }\n\n private get sendingResults() {\n const results = this.message.thirdPartyResponse ? this.message.thirdPartyResponse : ''\n\n if (!results.includes('errors')) return 'Message Sent Successfully.'\n\n return results\n }\n\n private send() {\n this.$emit('sendMessage')\n }\n private get summaryMessage() {\n if (!this.message) return ''\n\n let dateMsg = ''\n let verbTense = 'will send'\n const plural = this.message.recipientCount === 1 ? '' : 's'\n\n if (!this.isPreview) {\n verbTense = 'sent'\n const dt = dateFmt(this.message.sentDate, 'MM/dd/yy hh:MMa')\n dateMsg = ` on ${dt}`\n }\n\n return ` You ${verbTense} the following ${this.message.messageType}\n to ${this.message.recipientCount} recipient${plural}${dateMsg}.`\n }\n}\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/ts-loader/index.js??ref--14-3!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./CommunicationModal.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/ts-loader/index.js??ref--14-3!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./CommunicationModal.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./CommunicationModal.vue?vue&type=template&id=512e4ba2&scoped=true&\"\nimport script from \"./CommunicationModal.vue?vue&type=script&lang=ts&\"\nexport * from \"./CommunicationModal.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./CommunicationModal.vue?vue&type=style&index=0&id=512e4ba2&lang=scss&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"512e4ba2\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('input-label',{attrs:{\"label\":\"To\",\"required\":\"\"}}),_c('div',{staticClass:\"card bg-white recipient-list\"},[_c('div',{staticClass:\"card-body p-2\"},[(_vm.recipientGroups.length > 0)?_vm._l((_vm.groups),function(item){return _c('div',{key:item.id,staticClass:\"badge no-dismiss bg-primary badge-pill badge-primary mr-2\"},[_vm._v(\" \"+_vm._s(item.group)+\" \")])}):_vm._e(),_vm._l((_vm.individuals),function(item){return _c('div',{key:item.id,staticClass:\"recipient badge no-dismiss badge-pill mr-2\",class:_vm.getRecipientClass(item.contact),attrs:{\"title\":item.contact}},[_vm._v(\" \"+_vm._s(item.name)+\" \")])})],2)])],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","export function isEmailValid(email: string) {\n if (!email || typeof email !== 'string') return false\n const re = /^(([^<>()\\[\\]\\\\.,;:\\s@\"]+(\\.[^<>()\\[\\]\\\\.,;:\\s@\"]+)*)|(\".+\"))@((\\[[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\])|(([a-zA-Z\\-0-9]+\\.)+[a-zA-Z]{2,}))$/\n return email.match(re) !== null\n}\n","\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nimport { defineComponent, computed, PropType } from '@vue/composition-api'\nimport InputLabel from '@/elements/InputLabel.vue'\nimport { isEmailValid } from '@/lib/support/utilities/email/emailUtil'\nimport { isPhoneValid } from '@/lib/support/utilities/phone/phoneUtil'\nimport { MessageChannelTypes } from '@/components/Communication/MessageChannelData'\nimport { useIsRunningChallenge } from '@/lib/common/programTypeHelpers'\nimport store from '@/store'\nimport uuid from 'uuid'\n\ninterface Recipient {\n id: string\n contact: string\n name: string\n}\n\nexport default defineComponent({\n name: 'RecipientListPreview',\n components: { InputLabel },\n props: {\n recipientGroups: {\n type: Array as PropType,\n default: () => [],\n required: false,\n },\n channel: {\n type: String,\n default: MessageChannelTypes.EMAIL,\n required: true,\n },\n },\n setup(props) {\n const isRunningChallenge = useIsRunningChallenge()\n const isEmailChannel = computed(() => props.channel.toLowerCase() === MessageChannelTypes.EMAIL)\n\n const groups = computed(() => {\n const selectedGroups = store.getters.communications.messagePreview.selectedGroups\n return selectedGroups.map((group) => ({ id: uuid.v4(), group }))\n })\n\n const createRecipient = (contact: string, name: string = contact): Recipient => ({\n id: uuid.v4(),\n contact,\n name,\n })\n\n const getAdditionalRecipients = computed(() => {\n const delimitedRecipients = store.getters.communications.messagePreview.toDelimited.split(',')\n return delimitedRecipients.map((r) => createRecipient(r))\n })\n\n const individualsRecreational = computed(() => {\n const messagePreviewRecipients = store.getters.communications.messagePreview.to\n return [...getAdditionalRecipients.value, ...messagePreviewRecipients.map((r) => createRecipient(r))]\n })\n\n const individualsRunning = computed(() => {\n const selectedRecipients = store.getters.communications.recipients\n .filter((recipient) => recipient.isSelected)\n .map((recipient) =>\n createRecipient(isEmailChannel.value ? recipient.email : recipient.phone, recipient.name)\n )\n\n return [...getAdditionalRecipients.value, ...selectedRecipients]\n })\n\n const individuals = computed(() =>\n isRunningChallenge.value ? individualsRunning.value : individualsRecreational.value\n )\n\n const recipientValid = (recipient: string): boolean => {\n if (!recipient) return false\n return isEmailChannel.value ? isEmailValid(recipient) : isPhoneValid(recipient)\n }\n\n const getRecipientClass = (contact: string) => ({\n 'valid-pill': recipientValid(contact),\n 'invalid-pill': !recipientValid(contact),\n })\n\n return {\n groups,\n individuals,\n getRecipientClass,\n }\n },\n})\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??ref--14-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./RecipientListPreview.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??ref--14-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./RecipientListPreview.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./RecipientListPreview.vue?vue&type=template&id=bd63836c&scoped=true&\"\nimport script from \"./RecipientListPreview.vue?vue&type=script&lang=ts&\"\nexport * from \"./RecipientListPreview.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./RecipientListPreview.vue?vue&type=style&index=0&id=bd63836c&scoped=true&lang=scss&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"bd63836c\",\n null\n \n)\n\nexport default component.exports","export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./RecipientListPreview.vue?vue&type=style&index=0&id=bd63836c&scoped=true&lang=scss&\"","export enum MessageChannelTypes {\n 'EMAIL' = 'email',\n 'SMS' = 'sms',\n}\n","var render = function () {\nvar this$1 = this;\nvar _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"col\"},[[_vm._m(0),(_vm.hideAll)?_c('div',{staticClass:\"row\"},[_vm._m(1)]):_vm._e(),(!_vm.hideAll)?_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-8\"},[_c('section-header',{staticClass:\"mb-3 p-2\",attrs:{\"title\":\"Message Type\"}}),_c('group-message-channel',{staticClass:\"my-4\",model:{value:(_vm.channel),callback:function ($$v) {_vm.channel=$$v},expression:\"channel\"}}),_c('group-message-selector',{model:{value:(_vm.groupMessageType),callback:function ($$v) {_vm.groupMessageType=$$v},expression:\"groupMessageType\"}}),_c('section-header',{staticClass:\"my-3 p-2\",attrs:{\"title\":\"Filter Criteria\"}}),_c('group-message-filters',{attrs:{\"groupType\":_vm.groupMessageType,\"filters\":_vm.filters},on:{\"change\":_vm.setFilters,\"unconfiguredLeague\":function($event){_vm.hideAll = true},\"loading\":_vm.filtersLoading}})],1),_c('div',{staticClass:\"col-4 bg-light-1\"},[_c('vee-validate-form',{ref:\"form\",on:{\"submit\":_vm.send},scopedSlots:_vm._u([{key:\"default\",fn:function(ref){\nvar invalid = ref.invalid;\nvar errors = ref.errors;\nvar validate = ref.validate;\nreturn [_c('group-message-subject',{attrs:{\"hideSubject\":_vm.hideSubjectLine},model:{value:(_vm.subject),callback:function ($$v) {_vm.subject=$$v},expression:\"subject\"}}),_c('group-message-editor',{attrs:{\"channel\":_vm.channel,\"recipients\":_vm.recipients,\"group-type\":_vm.groupMessageType},model:{value:(_vm.messageBody),callback:function ($$v) {_vm.messageBody=$$v},expression:\"messageBody\"}}),(!_vm.isFiltersLoading)?_c('div',{staticClass:\"text-center mt-3\"},[_c('button',{staticClass:\"btn btn-primary mx-1 px-3\",attrs:{\"type\":\"button\"},on:{\"click\":_vm.preview}},[(_vm.isPreviewing)?_c('loading',{attrs:{\"is-small\":\"\"}}):[_vm._v(\"Preview\")]],2),_c('div',{directives:[{name:\"on-clickaway\",rawName:\"v-on-clickaway\",value:(_vm.sendDropAway),expression:\"sendDropAway\"}],staticClass:\"btn-group dropup\"},[_c('button',{staticClass:\"btn btn-success\",attrs:{\"type\":\"submit\"}},[(_vm.isSending)?_c('loading',{attrs:{\"is-small\":\"\"}}):[_c('i',{staticClass:\"fa fa-paper-plane\"}),_vm._v(\" \"+_vm._s(_vm.actionText)+\" \")]],2),_c('button',{staticClass:\"btn btn-success dropdown-toggle\",attrs:{\"type\":\"button\",\"aria-haspopup\":\"true\",\"aria-expanded\":\"false\"},on:{\"click\":_vm.toggleSendDrop}}),_c('div',{staticClass:\"dropdown-menu\",class:{ show: _vm.showSendDrop }},[_c('a',{staticClass:\"dropdown-item\",attrs:{\"href\":\"#\"},on:{\"click\":function($event){$event.preventDefault();return _vm.scheduleSend(validate)}}},[_vm._v(\"Schedule \"+_vm._s(_vm.actionText))])])])]):_vm._e()]}}],null,false,4032433432)})],1)]):_vm._e()],_c('communication-modal',{attrs:{\"message\":_vm.previewData,\"title\":\"Message Preview\",\"is-preview\":true,\"sending-email-in-progress\":_vm.isSendingEmailFromPreview},on:{\"sendMessage\":_vm.sendMessageFromModal},model:{value:(_vm.showPreview),callback:function ($$v) {_vm.showPreview=$$v},expression:\"showPreview\"}}),_c('info-modal',{attrs:{\"show\":_vm.showEmailConfirmationModal,\"title\":\"Confirmation\",\"button-text\":!_vm.sendCommunicationOn ? 'Ok' : 'View Scheduled',\"showClose\":!_vm.sendCommunicationOn},on:{\"close\":function () {\n if (_vm.sendCommunicationOn) { _vm.viewScheduled() }\n _vm.showEmailConfirmationModal = false\n _vm.sendCommunicationOn = null\n }}},[_c('i',{staticClass:\"col-12 text-center m-auto fas text-success fa-4x pb-4\",class:[_vm.sendCommunicationOn !== null ? 'fa-calendar' : 'fa-check-circle']}),(_vm.sendCommunicationOn === null)?_c('div',{staticClass:\"row\"},[_c('h3',{staticClass:\"col-12 text-center pb-4\"},[_vm._v(\" Your message has been \"),_c('br'),_vm._v(\" queued for delivery! \")]),_c('span',[_vm._v(\"Please allow up to 15 minutes for your recipients to receive message.\")])]):_c('h3',{staticClass:\"col-12 text-center pb-4\"},[_vm._v(\" Your message is scheduled to send on \"+_vm._s(_vm.sendCommunicationOnFormatted)+\"! \")])]),_c('modal-date-time-picker',{attrs:{\"pickLabel\":\"Send\",\"show\":_vm.showScheduleSendModal},on:{\"picked\":function (datePicked) {\n this$1.sendCommunicationOn = datePicked\n _vm.showScheduleSendModal = false\n _vm.send()\n },\"cancelled\":function () {\n _vm.showScheduleSendModal = false\n _vm.sendCommunicationOn = null\n }}})],2)}\nvar staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"row\"},[_c('h5',{staticClass:\"col\"},[_vm._v(\"Shareable Links\")])])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"col\"},[_c('div',{staticClass:\"m-3\"},[_vm._v(\" Group messages cannot be sent because there are no divisions or teams configured. \")])])}]\n\nexport { render, staticRenderFns }","export enum GroupMessageTypes {\n 'PAGELINK' = 'teamPageLink',\n 'ROSTER' = 'teamRoster',\n}\n\nexport const GroupMessageTokens = new Map([\n ['teamPageLink', '{{TeamPageLink}}'],\n ['teamRoster', '{{TeamRosterLink}}'],\n])\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('radio-group-input',{attrs:{\"label\":\"send shareable link for\",\"value\":_vm.value,\"items-list\":_vm.list,\"value-property-name\":\"value\",\"text-property-name\":\"text\",\"item-class\":\"form-check form-check-inline\",\"wrapperClass\":\"input-label-inline\"},on:{\"input\":_vm.emitValue}}),_c('p',{staticClass:\"small text-muted\"},[_vm._v(_vm._s(_vm.descriptiveText))])],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nimport { defineComponent, ref, computed } from '@vue/composition-api'\nimport RadioGroupInput from '@/elements/RadioGroupInput.vue'\nimport { GroupMessageTypes } from '@/components/Communication/GroupMessageSelector/GroupMessageSelectorData'\n\nexport default defineComponent({\n name: 'GroupMessageSelector',\n components: { RadioGroupInput },\n props: {\n value: { type: String, default: GroupMessageTypes.PAGELINK, required: false },\n },\n setup(props, ctx) {\n const list = ref([\n { value: GroupMessageTypes.PAGELINK, text: 'Team Page Link' },\n { value: GroupMessageTypes.ROSTER, text: 'Team Roster' },\n ])\n\n function emitValue(val: string) {\n ctx.emit('input', val)\n }\n\n const descriptiveText = computed((): string => {\n switch (props.value) {\n case GroupMessageTypes.PAGELINK:\n return 'Send a team page link to one or more guardians via email or sms.'\n case GroupMessageTypes.ROSTER:\n return 'Send a link of the roster to one or more coaches via email or sms. Accessing the team roster requires an active coach login. Be sure to invite your coaches first before sending the team roster.'\n default:\n return ''\n }\n })\n\n return {\n list,\n descriptiveText,\n emitValue,\n }\n },\n})\n","import mod from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/ts-loader/index.js??ref--14-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./GroupMessageSelector.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/ts-loader/index.js??ref--14-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./GroupMessageSelector.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./GroupMessageSelector.vue?vue&type=template&id=3c1c73fa&\"\nimport script from \"./GroupMessageSelector.vue?vue&type=script&lang=ts&\"\nexport * from \"./GroupMessageSelector.vue?vue&type=script&lang=ts&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('radio-group-input',{attrs:{\"label\":\"send message by\",\"value\":_vm.value,\"items-list\":_vm.list,\"value-property-name\":\"value\",\"text-property-name\":\"text\",\"item-class\":\"form-check form-check-inline\",\"wrapperClass\":\"input-label-inline\"},on:{\"input\":_vm.emitValue}})],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nimport { defineComponent, ref } from '@vue/composition-api'\nimport RadioGroupInput from '@/elements/RadioGroupInput.vue'\nimport { MessageChannelTypes } from '@/components/Communication/MessageChannelData'\n\nexport default defineComponent({\n name: 'GroupMessageChannel',\n components: { RadioGroupInput },\n props: {\n value: { type: String, default: MessageChannelTypes.EMAIL, required: false },\n },\n setup(props, ctx) {\n const list = ref([\n { value: MessageChannelTypes.EMAIL, text: 'Email' },\n { value: MessageChannelTypes.SMS, text: 'SMS' },\n ])\n\n function emitValue(val: string) {\n ctx.emit('input', val)\n }\n\n return {\n list,\n emitValue,\n }\n },\n})\n","import mod from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/ts-loader/index.js??ref--14-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./GroupMessageChannel.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/ts-loader/index.js??ref--14-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./GroupMessageChannel.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./GroupMessageChannel.vue?vue&type=template&id=69829ae8&\"\nimport script from \"./GroupMessageChannel.vue?vue&type=script&lang=ts&\"\nexport * from \"./GroupMessageChannel.vue?vue&type=script&lang=ts&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[(_vm.loading)?[_c('div',{staticClass:\"col\"},[_c('loading')],1)]:_vm._e(),(!_vm.loading)?[_c('select-input',{attrs:{\"label\":\"Division\",\"items-list\":_vm.allDivisions,\"text-property-name\":\"divisionName\",\"value-property-name\":\"divisionID\",\"blank-item-text\":\"All Divisions\",\"show-blank-item\":true,\"blank-item-value\":0},model:{value:(_vm.divisionId),callback:function ($$v) {_vm.divisionId=$$v},expression:\"divisionId\"}}),_c('multiselect-input',{ref:\"teamMultiselect\",attrs:{\"label\":\"Team\",\"items-list\":_vm.teams,\"text-property-name\":\"teamName\",\"value-property-name\":\"teamID\",\"list-direction-up\":true},model:{value:(_vm.teamIds),callback:function ($$v) {_vm.teamIds=$$v},expression:\"teamIds\"}}),(_vm.isRoster)?_c('group-message-coach-filter',{staticClass:\"mt-4\",model:{value:(_vm.coach),callback:function ($$v) {_vm.coach=$$v},expression:\"coach\"}}):_vm._e()]:_vm._e()],2)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('base-input-wrapper',{attrs:{\"required\":_vm.required,\"label\":_vm.label,\"prepend-icon\":_vm.prependIcon,\"append-icon\":_vm.appendIcon,\"id\":_vm.elementId}},[_c('v-select',{attrs:{\"options\":_vm.itemsList,\"label\":_vm.textPropertyName,\"multiple\":\"\",\"placeholder\":_vm.placeholder,\"appendToBody\":_vm.listDirectionUp,\"calculatePosition\":_vm.withPopper,\"disabled\":!_vm.enabled},on:{\"input\":_vm.handleChange},model:{value:(_vm.selected),callback:function ($$v) {_vm.selected=$$v},expression:\"selected\"}})],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","export default function getWindow(node) {\n if (node == null) {\n return window;\n }\n\n if (node.toString() !== '[object Window]') {\n var ownerDocument = node.ownerDocument;\n return ownerDocument ? ownerDocument.defaultView || window : window;\n }\n\n return node;\n}","import getWindow from \"./getWindow.js\";\n\nfunction isElement(node) {\n var OwnElement = getWindow(node).Element;\n return node instanceof OwnElement || node instanceof Element;\n}\n\nfunction isHTMLElement(node) {\n var OwnElement = getWindow(node).HTMLElement;\n return node instanceof OwnElement || node instanceof HTMLElement;\n}\n\nfunction isShadowRoot(node) {\n // IE 11 has no ShadowRoot\n if (typeof ShadowRoot === 'undefined') {\n return false;\n }\n\n var OwnElement = getWindow(node).ShadowRoot;\n return node instanceof OwnElement || node instanceof ShadowRoot;\n}\n\nexport { isElement, isHTMLElement, isShadowRoot };","export var max = Math.max;\nexport var min = Math.min;\nexport var round = Math.round;","import { isHTMLElement } from \"./instanceOf.js\";\nimport { round } from \"../utils/math.js\";\nexport default function getBoundingClientRect(element, includeScale) {\n if (includeScale === void 0) {\n includeScale = false;\n }\n\n var rect = element.getBoundingClientRect();\n var scaleX = 1;\n var scaleY = 1;\n\n if (isHTMLElement(element) && includeScale) {\n var offsetHeight = element.offsetHeight;\n var offsetWidth = element.offsetWidth; // Do not attempt to divide by 0, otherwise we get `Infinity` as scale\n // Fallback to 1 in case both values are `0`\n\n if (offsetWidth > 0) {\n scaleX = round(rect.width) / offsetWidth || 1;\n }\n\n if (offsetHeight > 0) {\n scaleY = round(rect.height) / offsetHeight || 1;\n }\n }\n\n return {\n width: rect.width / scaleX,\n height: rect.height / scaleY,\n top: rect.top / scaleY,\n right: rect.right / scaleX,\n bottom: rect.bottom / scaleY,\n left: rect.left / scaleX,\n x: rect.left / scaleX,\n y: rect.top / scaleY\n };\n}","import getWindow from \"./getWindow.js\";\nexport default function getWindowScroll(node) {\n var win = getWindow(node);\n var scrollLeft = win.pageXOffset;\n var scrollTop = win.pageYOffset;\n return {\n scrollLeft: scrollLeft,\n scrollTop: scrollTop\n };\n}","export default function getHTMLElementScroll(element) {\n return {\n scrollLeft: element.scrollLeft,\n scrollTop: element.scrollTop\n };\n}","import getWindowScroll from \"./getWindowScroll.js\";\nimport getWindow from \"./getWindow.js\";\nimport { isHTMLElement } from \"./instanceOf.js\";\nimport getHTMLElementScroll from \"./getHTMLElementScroll.js\";\nexport default function getNodeScroll(node) {\n if (node === getWindow(node) || !isHTMLElement(node)) {\n return getWindowScroll(node);\n } else {\n return getHTMLElementScroll(node);\n }\n}","export default function getNodeName(element) {\n return element ? (element.nodeName || '').toLowerCase() : null;\n}","import { isElement } from \"./instanceOf.js\";\nexport default function getDocumentElement(element) {\n // $FlowFixMe[incompatible-return]: assume body is always available\n return ((isElement(element) ? element.ownerDocument : // $FlowFixMe[prop-missing]\n element.document) || window.document).documentElement;\n}","import getBoundingClientRect from \"./getBoundingClientRect.js\";\nimport getDocumentElement from \"./getDocumentElement.js\";\nimport getWindowScroll from \"./getWindowScroll.js\";\nexport default function getWindowScrollBarX(element) {\n // If has a CSS width greater than the viewport, then this will be\n // incorrect for RTL.\n // Popper 1 is broken in this case and never had a bug report so let's assume\n // it's not an issue. I don't think anyone ever specifies width on \n // anyway.\n // Browsers where the left scrollbar doesn't cause an issue report `0` for\n // this (e.g. Edge 2019, IE11, Safari)\n return getBoundingClientRect(getDocumentElement(element)).left + getWindowScroll(element).scrollLeft;\n}","import getWindow from \"./getWindow.js\";\nexport default function getComputedStyle(element) {\n return getWindow(element).getComputedStyle(element);\n}","import getComputedStyle from \"./getComputedStyle.js\";\nexport default function isScrollParent(element) {\n // Firefox wants us to check `-x` and `-y` variations as well\n var _getComputedStyle = getComputedStyle(element),\n overflow = _getComputedStyle.overflow,\n overflowX = _getComputedStyle.overflowX,\n overflowY = _getComputedStyle.overflowY;\n\n return /auto|scroll|overlay|hidden/.test(overflow + overflowY + overflowX);\n}","import getBoundingClientRect from \"./getBoundingClientRect.js\";\nimport getNodeScroll from \"./getNodeScroll.js\";\nimport getNodeName from \"./getNodeName.js\";\nimport { isHTMLElement } from \"./instanceOf.js\";\nimport getWindowScrollBarX from \"./getWindowScrollBarX.js\";\nimport getDocumentElement from \"./getDocumentElement.js\";\nimport isScrollParent from \"./isScrollParent.js\";\nimport { round } from \"../utils/math.js\";\n\nfunction isElementScaled(element) {\n var rect = element.getBoundingClientRect();\n var scaleX = round(rect.width) / element.offsetWidth || 1;\n var scaleY = round(rect.height) / element.offsetHeight || 1;\n return scaleX !== 1 || scaleY !== 1;\n} // Returns the composite rect of an element relative to its offsetParent.\n// Composite means it takes into account transforms as well as layout.\n\n\nexport default function getCompositeRect(elementOrVirtualElement, offsetParent, isFixed) {\n if (isFixed === void 0) {\n isFixed = false;\n }\n\n var isOffsetParentAnElement = isHTMLElement(offsetParent);\n var offsetParentIsScaled = isHTMLElement(offsetParent) && isElementScaled(offsetParent);\n var documentElement = getDocumentElement(offsetParent);\n var rect = getBoundingClientRect(elementOrVirtualElement, offsetParentIsScaled);\n var scroll = {\n scrollLeft: 0,\n scrollTop: 0\n };\n var offsets = {\n x: 0,\n y: 0\n };\n\n if (isOffsetParentAnElement || !isOffsetParentAnElement && !isFixed) {\n if (getNodeName(offsetParent) !== 'body' || // https://github.com/popperjs/popper-core/issues/1078\n isScrollParent(documentElement)) {\n scroll = getNodeScroll(offsetParent);\n }\n\n if (isHTMLElement(offsetParent)) {\n offsets = getBoundingClientRect(offsetParent, true);\n offsets.x += offsetParent.clientLeft;\n offsets.y += offsetParent.clientTop;\n } else if (documentElement) {\n offsets.x = getWindowScrollBarX(documentElement);\n }\n }\n\n return {\n x: rect.left + scroll.scrollLeft - offsets.x,\n y: rect.top + scroll.scrollTop - offsets.y,\n width: rect.width,\n height: rect.height\n };\n}","import getBoundingClientRect from \"./getBoundingClientRect.js\"; // Returns the layout rect of an element relative to its offsetParent. Layout\n// means it doesn't take into account transforms.\n\nexport default function getLayoutRect(element) {\n var clientRect = getBoundingClientRect(element); // Use the clientRect sizes if it's not been transformed.\n // Fixes https://github.com/popperjs/popper-core/issues/1223\n\n var width = element.offsetWidth;\n var height = element.offsetHeight;\n\n if (Math.abs(clientRect.width - width) <= 1) {\n width = clientRect.width;\n }\n\n if (Math.abs(clientRect.height - height) <= 1) {\n height = clientRect.height;\n }\n\n return {\n x: element.offsetLeft,\n y: element.offsetTop,\n width: width,\n height: height\n };\n}","import getNodeName from \"./getNodeName.js\";\nimport getDocumentElement from \"./getDocumentElement.js\";\nimport { isShadowRoot } from \"./instanceOf.js\";\nexport default function getParentNode(element) {\n if (getNodeName(element) === 'html') {\n return element;\n }\n\n return (// this is a quicker (but less type safe) way to save quite some bytes from the bundle\n // $FlowFixMe[incompatible-return]\n // $FlowFixMe[prop-missing]\n element.assignedSlot || // step into the shadow DOM of the parent of a slotted node\n element.parentNode || ( // DOM Element detected\n isShadowRoot(element) ? element.host : null) || // ShadowRoot detected\n // $FlowFixMe[incompatible-call]: HTMLElement is a Node\n getDocumentElement(element) // fallback\n\n );\n}","import getParentNode from \"./getParentNode.js\";\nimport isScrollParent from \"./isScrollParent.js\";\nimport getNodeName from \"./getNodeName.js\";\nimport { isHTMLElement } from \"./instanceOf.js\";\nexport default function getScrollParent(node) {\n if (['html', 'body', '#document'].indexOf(getNodeName(node)) >= 0) {\n // $FlowFixMe[incompatible-return]: assume body is always available\n return node.ownerDocument.body;\n }\n\n if (isHTMLElement(node) && isScrollParent(node)) {\n return node;\n }\n\n return getScrollParent(getParentNode(node));\n}","import getScrollParent from \"./getScrollParent.js\";\nimport getParentNode from \"./getParentNode.js\";\nimport getWindow from \"./getWindow.js\";\nimport isScrollParent from \"./isScrollParent.js\";\n/*\ngiven a DOM element, return the list of all scroll parents, up the list of ancesors\nuntil we get to the top window object. This list is what we attach scroll listeners\nto, because if any of these parent elements scroll, we'll need to re-calculate the\nreference element's position.\n*/\n\nexport default function listScrollParents(element, list) {\n var _element$ownerDocumen;\n\n if (list === void 0) {\n list = [];\n }\n\n var scrollParent = getScrollParent(element);\n var isBody = scrollParent === ((_element$ownerDocumen = element.ownerDocument) == null ? void 0 : _element$ownerDocumen.body);\n var win = getWindow(scrollParent);\n var target = isBody ? [win].concat(win.visualViewport || [], isScrollParent(scrollParent) ? scrollParent : []) : scrollParent;\n var updatedList = list.concat(target);\n return isBody ? updatedList : // $FlowFixMe[incompatible-call]: isBody tells us target will be an HTMLElement here\n updatedList.concat(listScrollParents(getParentNode(target)));\n}","import getNodeName from \"./getNodeName.js\";\nexport default function isTableElement(element) {\n return ['table', 'td', 'th'].indexOf(getNodeName(element)) >= 0;\n}","import getWindow from \"./getWindow.js\";\nimport getNodeName from \"./getNodeName.js\";\nimport getComputedStyle from \"./getComputedStyle.js\";\nimport { isHTMLElement } from \"./instanceOf.js\";\nimport isTableElement from \"./isTableElement.js\";\nimport getParentNode from \"./getParentNode.js\";\n\nfunction getTrueOffsetParent(element) {\n if (!isHTMLElement(element) || // https://github.com/popperjs/popper-core/issues/837\n getComputedStyle(element).position === 'fixed') {\n return null;\n }\n\n return element.offsetParent;\n} // `.offsetParent` reports `null` for fixed elements, while absolute elements\n// return the containing block\n\n\nfunction getContainingBlock(element) {\n var isFirefox = navigator.userAgent.toLowerCase().indexOf('firefox') !== -1;\n var isIE = navigator.userAgent.indexOf('Trident') !== -1;\n\n if (isIE && isHTMLElement(element)) {\n // In IE 9, 10 and 11 fixed elements containing block is always established by the viewport\n var elementCss = getComputedStyle(element);\n\n if (elementCss.position === 'fixed') {\n return null;\n }\n }\n\n var currentNode = getParentNode(element);\n\n while (isHTMLElement(currentNode) && ['html', 'body'].indexOf(getNodeName(currentNode)) < 0) {\n var css = getComputedStyle(currentNode); // This is non-exhaustive but covers the most common CSS properties that\n // create a containing block.\n // https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block\n\n if (css.transform !== 'none' || css.perspective !== 'none' || css.contain === 'paint' || ['transform', 'perspective'].indexOf(css.willChange) !== -1 || isFirefox && css.willChange === 'filter' || isFirefox && css.filter && css.filter !== 'none') {\n return currentNode;\n } else {\n currentNode = currentNode.parentNode;\n }\n }\n\n return null;\n} // Gets the closest ancestor positioned element. Handles some edge cases,\n// such as table ancestors and cross browser bugs.\n\n\nexport default function getOffsetParent(element) {\n var window = getWindow(element);\n var offsetParent = getTrueOffsetParent(element);\n\n while (offsetParent && isTableElement(offsetParent) && getComputedStyle(offsetParent).position === 'static') {\n offsetParent = getTrueOffsetParent(offsetParent);\n }\n\n if (offsetParent && (getNodeName(offsetParent) === 'html' || getNodeName(offsetParent) === 'body' && getComputedStyle(offsetParent).position === 'static')) {\n return window;\n }\n\n return offsetParent || getContainingBlock(element) || window;\n}","export var top = 'top';\nexport var bottom = 'bottom';\nexport var right = 'right';\nexport var left = 'left';\nexport var auto = 'auto';\nexport var basePlacements = [top, bottom, right, left];\nexport var start = 'start';\nexport var end = 'end';\nexport var clippingParents = 'clippingParents';\nexport var viewport = 'viewport';\nexport var popper = 'popper';\nexport var reference = 'reference';\nexport var variationPlacements = /*#__PURE__*/basePlacements.reduce(function (acc, placement) {\n return acc.concat([placement + \"-\" + start, placement + \"-\" + end]);\n}, []);\nexport var placements = /*#__PURE__*/[].concat(basePlacements, [auto]).reduce(function (acc, placement) {\n return acc.concat([placement, placement + \"-\" + start, placement + \"-\" + end]);\n}, []); // modifiers that need to read the DOM\n\nexport var beforeRead = 'beforeRead';\nexport var read = 'read';\nexport var afterRead = 'afterRead'; // pure-logic modifiers\n\nexport var beforeMain = 'beforeMain';\nexport var main = 'main';\nexport var afterMain = 'afterMain'; // modifier with the purpose to write to the DOM (or write into a framework state)\n\nexport var beforeWrite = 'beforeWrite';\nexport var write = 'write';\nexport var afterWrite = 'afterWrite';\nexport var modifierPhases = [beforeRead, read, afterRead, beforeMain, main, afterMain, beforeWrite, write, afterWrite];","import { modifierPhases } from \"../enums.js\"; // source: https://stackoverflow.com/questions/49875255\n\nfunction order(modifiers) {\n var map = new Map();\n var visited = new Set();\n var result = [];\n modifiers.forEach(function (modifier) {\n map.set(modifier.name, modifier);\n }); // On visiting object, check for its dependencies and visit them recursively\n\n function sort(modifier) {\n visited.add(modifier.name);\n var requires = [].concat(modifier.requires || [], modifier.requiresIfExists || []);\n requires.forEach(function (dep) {\n if (!visited.has(dep)) {\n var depModifier = map.get(dep);\n\n if (depModifier) {\n sort(depModifier);\n }\n }\n });\n result.push(modifier);\n }\n\n modifiers.forEach(function (modifier) {\n if (!visited.has(modifier.name)) {\n // check for visited object\n sort(modifier);\n }\n });\n return result;\n}\n\nexport default function orderModifiers(modifiers) {\n // order based on dependencies\n var orderedModifiers = order(modifiers); // order based on phase\n\n return modifierPhases.reduce(function (acc, phase) {\n return acc.concat(orderedModifiers.filter(function (modifier) {\n return modifier.phase === phase;\n }));\n }, []);\n}","export default function debounce(fn) {\n var pending;\n return function () {\n if (!pending) {\n pending = new Promise(function (resolve) {\n Promise.resolve().then(function () {\n pending = undefined;\n resolve(fn());\n });\n });\n }\n\n return pending;\n };\n}","export default function mergeByName(modifiers) {\n var merged = modifiers.reduce(function (merged, current) {\n var existing = merged[current.name];\n merged[current.name] = existing ? Object.assign({}, existing, current, {\n options: Object.assign({}, existing.options, current.options),\n data: Object.assign({}, existing.data, current.data)\n }) : current;\n return merged;\n }, {}); // IE11 does not support Object.values\n\n return Object.keys(merged).map(function (key) {\n return merged[key];\n });\n}","import getCompositeRect from \"./dom-utils/getCompositeRect.js\";\nimport getLayoutRect from \"./dom-utils/getLayoutRect.js\";\nimport listScrollParents from \"./dom-utils/listScrollParents.js\";\nimport getOffsetParent from \"./dom-utils/getOffsetParent.js\";\nimport getComputedStyle from \"./dom-utils/getComputedStyle.js\";\nimport orderModifiers from \"./utils/orderModifiers.js\";\nimport debounce from \"./utils/debounce.js\";\nimport validateModifiers from \"./utils/validateModifiers.js\";\nimport uniqueBy from \"./utils/uniqueBy.js\";\nimport getBasePlacement from \"./utils/getBasePlacement.js\";\nimport mergeByName from \"./utils/mergeByName.js\";\nimport detectOverflow from \"./utils/detectOverflow.js\";\nimport { isElement } from \"./dom-utils/instanceOf.js\";\nimport { auto } from \"./enums.js\";\nvar INVALID_ELEMENT_ERROR = 'Popper: Invalid reference or popper argument provided. They must be either a DOM element or virtual element.';\nvar INFINITE_LOOP_ERROR = 'Popper: An infinite loop in the modifiers cycle has been detected! The cycle has been interrupted to prevent a browser crash.';\nvar DEFAULT_OPTIONS = {\n placement: 'bottom',\n modifiers: [],\n strategy: 'absolute'\n};\n\nfunction areValidElements() {\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n return !args.some(function (element) {\n return !(element && typeof element.getBoundingClientRect === 'function');\n });\n}\n\nexport function popperGenerator(generatorOptions) {\n if (generatorOptions === void 0) {\n generatorOptions = {};\n }\n\n var _generatorOptions = generatorOptions,\n _generatorOptions$def = _generatorOptions.defaultModifiers,\n defaultModifiers = _generatorOptions$def === void 0 ? [] : _generatorOptions$def,\n _generatorOptions$def2 = _generatorOptions.defaultOptions,\n defaultOptions = _generatorOptions$def2 === void 0 ? DEFAULT_OPTIONS : _generatorOptions$def2;\n return function createPopper(reference, popper, options) {\n if (options === void 0) {\n options = defaultOptions;\n }\n\n var state = {\n placement: 'bottom',\n orderedModifiers: [],\n options: Object.assign({}, DEFAULT_OPTIONS, defaultOptions),\n modifiersData: {},\n elements: {\n reference: reference,\n popper: popper\n },\n attributes: {},\n styles: {}\n };\n var effectCleanupFns = [];\n var isDestroyed = false;\n var instance = {\n state: state,\n setOptions: function setOptions(setOptionsAction) {\n var options = typeof setOptionsAction === 'function' ? setOptionsAction(state.options) : setOptionsAction;\n cleanupModifierEffects();\n state.options = Object.assign({}, defaultOptions, state.options, options);\n state.scrollParents = {\n reference: isElement(reference) ? listScrollParents(reference) : reference.contextElement ? listScrollParents(reference.contextElement) : [],\n popper: listScrollParents(popper)\n }; // Orders the modifiers based on their dependencies and `phase`\n // properties\n\n var orderedModifiers = orderModifiers(mergeByName([].concat(defaultModifiers, state.options.modifiers))); // Strip out disabled modifiers\n\n state.orderedModifiers = orderedModifiers.filter(function (m) {\n return m.enabled;\n }); // Validate the provided modifiers so that the consumer will get warned\n // if one of the modifiers is invalid for any reason\n\n if (process.env.NODE_ENV !== \"production\") {\n var modifiers = uniqueBy([].concat(orderedModifiers, state.options.modifiers), function (_ref) {\n var name = _ref.name;\n return name;\n });\n validateModifiers(modifiers);\n\n if (getBasePlacement(state.options.placement) === auto) {\n var flipModifier = state.orderedModifiers.find(function (_ref2) {\n var name = _ref2.name;\n return name === 'flip';\n });\n\n if (!flipModifier) {\n console.error(['Popper: \"auto\" placements require the \"flip\" modifier be', 'present and enabled to work.'].join(' '));\n }\n }\n\n var _getComputedStyle = getComputedStyle(popper),\n marginTop = _getComputedStyle.marginTop,\n marginRight = _getComputedStyle.marginRight,\n marginBottom = _getComputedStyle.marginBottom,\n marginLeft = _getComputedStyle.marginLeft; // We no longer take into account `margins` on the popper, and it can\n // cause bugs with positioning, so we'll warn the consumer\n\n\n if ([marginTop, marginRight, marginBottom, marginLeft].some(function (margin) {\n return parseFloat(margin);\n })) {\n console.warn(['Popper: CSS \"margin\" styles cannot be used to apply padding', 'between the popper and its reference element or boundary.', 'To replicate margin, use the `offset` modifier, as well as', 'the `padding` option in the `preventOverflow` and `flip`', 'modifiers.'].join(' '));\n }\n }\n\n runModifierEffects();\n return instance.update();\n },\n // Sync update – it will always be executed, even if not necessary. This\n // is useful for low frequency updates where sync behavior simplifies the\n // logic.\n // For high frequency updates (e.g. `resize` and `scroll` events), always\n // prefer the async Popper#update method\n forceUpdate: function forceUpdate() {\n if (isDestroyed) {\n return;\n }\n\n var _state$elements = state.elements,\n reference = _state$elements.reference,\n popper = _state$elements.popper; // Don't proceed if `reference` or `popper` are not valid elements\n // anymore\n\n if (!areValidElements(reference, popper)) {\n if (process.env.NODE_ENV !== \"production\") {\n console.error(INVALID_ELEMENT_ERROR);\n }\n\n return;\n } // Store the reference and popper rects to be read by modifiers\n\n\n state.rects = {\n reference: getCompositeRect(reference, getOffsetParent(popper), state.options.strategy === 'fixed'),\n popper: getLayoutRect(popper)\n }; // Modifiers have the ability to reset the current update cycle. The\n // most common use case for this is the `flip` modifier changing the\n // placement, which then needs to re-run all the modifiers, because the\n // logic was previously ran for the previous placement and is therefore\n // stale/incorrect\n\n state.reset = false;\n state.placement = state.options.placement; // On each update cycle, the `modifiersData` property for each modifier\n // is filled with the initial data specified by the modifier. This means\n // it doesn't persist and is fresh on each update.\n // To ensure persistent data, use `${name}#persistent`\n\n state.orderedModifiers.forEach(function (modifier) {\n return state.modifiersData[modifier.name] = Object.assign({}, modifier.data);\n });\n var __debug_loops__ = 0;\n\n for (var index = 0; index < state.orderedModifiers.length; index++) {\n if (process.env.NODE_ENV !== \"production\") {\n __debug_loops__ += 1;\n\n if (__debug_loops__ > 100) {\n console.error(INFINITE_LOOP_ERROR);\n break;\n }\n }\n\n if (state.reset === true) {\n state.reset = false;\n index = -1;\n continue;\n }\n\n var _state$orderedModifie = state.orderedModifiers[index],\n fn = _state$orderedModifie.fn,\n _state$orderedModifie2 = _state$orderedModifie.options,\n _options = _state$orderedModifie2 === void 0 ? {} : _state$orderedModifie2,\n name = _state$orderedModifie.name;\n\n if (typeof fn === 'function') {\n state = fn({\n state: state,\n options: _options,\n name: name,\n instance: instance\n }) || state;\n }\n }\n },\n // Async and optimistically optimized update – it will not be executed if\n // not necessary (debounced to run at most once-per-tick)\n update: debounce(function () {\n return new Promise(function (resolve) {\n instance.forceUpdate();\n resolve(state);\n });\n }),\n destroy: function destroy() {\n cleanupModifierEffects();\n isDestroyed = true;\n }\n };\n\n if (!areValidElements(reference, popper)) {\n if (process.env.NODE_ENV !== \"production\") {\n console.error(INVALID_ELEMENT_ERROR);\n }\n\n return instance;\n }\n\n instance.setOptions(options).then(function (state) {\n if (!isDestroyed && options.onFirstUpdate) {\n options.onFirstUpdate(state);\n }\n }); // Modifiers have the ability to execute arbitrary code before the first\n // update cycle runs. They will be executed in the same order as the update\n // cycle. This is useful when a modifier adds some persistent data that\n // other modifiers need to use, but the modifier is run after the dependent\n // one.\n\n function runModifierEffects() {\n state.orderedModifiers.forEach(function (_ref3) {\n var name = _ref3.name,\n _ref3$options = _ref3.options,\n options = _ref3$options === void 0 ? {} : _ref3$options,\n effect = _ref3.effect;\n\n if (typeof effect === 'function') {\n var cleanupFn = effect({\n state: state,\n name: name,\n instance: instance,\n options: options\n });\n\n var noopFn = function noopFn() {};\n\n effectCleanupFns.push(cleanupFn || noopFn);\n }\n });\n }\n\n function cleanupModifierEffects() {\n effectCleanupFns.forEach(function (fn) {\n return fn();\n });\n effectCleanupFns = [];\n }\n\n return instance;\n };\n}\nexport var createPopper = /*#__PURE__*/popperGenerator(); // eslint-disable-next-line import/no-unused-modules\n\nexport { detectOverflow };","import getWindow from \"../dom-utils/getWindow.js\"; // eslint-disable-next-line import/no-unused-modules\n\nvar passive = {\n passive: true\n};\n\nfunction effect(_ref) {\n var state = _ref.state,\n instance = _ref.instance,\n options = _ref.options;\n var _options$scroll = options.scroll,\n scroll = _options$scroll === void 0 ? true : _options$scroll,\n _options$resize = options.resize,\n resize = _options$resize === void 0 ? true : _options$resize;\n var window = getWindow(state.elements.popper);\n var scrollParents = [].concat(state.scrollParents.reference, state.scrollParents.popper);\n\n if (scroll) {\n scrollParents.forEach(function (scrollParent) {\n scrollParent.addEventListener('scroll', instance.update, passive);\n });\n }\n\n if (resize) {\n window.addEventListener('resize', instance.update, passive);\n }\n\n return function () {\n if (scroll) {\n scrollParents.forEach(function (scrollParent) {\n scrollParent.removeEventListener('scroll', instance.update, passive);\n });\n }\n\n if (resize) {\n window.removeEventListener('resize', instance.update, passive);\n }\n };\n} // eslint-disable-next-line import/no-unused-modules\n\n\nexport default {\n name: 'eventListeners',\n enabled: true,\n phase: 'write',\n fn: function fn() {},\n effect: effect,\n data: {}\n};","import { auto } from \"../enums.js\";\nexport default function getBasePlacement(placement) {\n return placement.split('-')[0];\n}","export default function getVariation(placement) {\n return placement.split('-')[1];\n}","export default function getMainAxisFromPlacement(placement) {\n return ['top', 'bottom'].indexOf(placement) >= 0 ? 'x' : 'y';\n}","import getBasePlacement from \"./getBasePlacement.js\";\nimport getVariation from \"./getVariation.js\";\nimport getMainAxisFromPlacement from \"./getMainAxisFromPlacement.js\";\nimport { top, right, bottom, left, start, end } from \"../enums.js\";\nexport default function computeOffsets(_ref) {\n var reference = _ref.reference,\n element = _ref.element,\n placement = _ref.placement;\n var basePlacement = placement ? getBasePlacement(placement) : null;\n var variation = placement ? getVariation(placement) : null;\n var commonX = reference.x + reference.width / 2 - element.width / 2;\n var commonY = reference.y + reference.height / 2 - element.height / 2;\n var offsets;\n\n switch (basePlacement) {\n case top:\n offsets = {\n x: commonX,\n y: reference.y - element.height\n };\n break;\n\n case bottom:\n offsets = {\n x: commonX,\n y: reference.y + reference.height\n };\n break;\n\n case right:\n offsets = {\n x: reference.x + reference.width,\n y: commonY\n };\n break;\n\n case left:\n offsets = {\n x: reference.x - element.width,\n y: commonY\n };\n break;\n\n default:\n offsets = {\n x: reference.x,\n y: reference.y\n };\n }\n\n var mainAxis = basePlacement ? getMainAxisFromPlacement(basePlacement) : null;\n\n if (mainAxis != null) {\n var len = mainAxis === 'y' ? 'height' : 'width';\n\n switch (variation) {\n case start:\n offsets[mainAxis] = offsets[mainAxis] - (reference[len] / 2 - element[len] / 2);\n break;\n\n case end:\n offsets[mainAxis] = offsets[mainAxis] + (reference[len] / 2 - element[len] / 2);\n break;\n\n default:\n }\n }\n\n return offsets;\n}","import computeOffsets from \"../utils/computeOffsets.js\";\n\nfunction popperOffsets(_ref) {\n var state = _ref.state,\n name = _ref.name;\n // Offsets are the actual position the popper needs to have to be\n // properly positioned near its reference element\n // This is the most basic placement, and will be adjusted by\n // the modifiers in the next step\n state.modifiersData[name] = computeOffsets({\n reference: state.rects.reference,\n element: state.rects.popper,\n strategy: 'absolute',\n placement: state.placement\n });\n} // eslint-disable-next-line import/no-unused-modules\n\n\nexport default {\n name: 'popperOffsets',\n enabled: true,\n phase: 'read',\n fn: popperOffsets,\n data: {}\n};","import { top, left, right, bottom, end } from \"../enums.js\";\nimport getOffsetParent from \"../dom-utils/getOffsetParent.js\";\nimport getWindow from \"../dom-utils/getWindow.js\";\nimport getDocumentElement from \"../dom-utils/getDocumentElement.js\";\nimport getComputedStyle from \"../dom-utils/getComputedStyle.js\";\nimport getBasePlacement from \"../utils/getBasePlacement.js\";\nimport getVariation from \"../utils/getVariation.js\";\nimport { round } from \"../utils/math.js\"; // eslint-disable-next-line import/no-unused-modules\n\nvar unsetSides = {\n top: 'auto',\n right: 'auto',\n bottom: 'auto',\n left: 'auto'\n}; // Round the offsets to the nearest suitable subpixel based on the DPR.\n// Zooming can change the DPR, but it seems to report a value that will\n// cleanly divide the values into the appropriate subpixels.\n\nfunction roundOffsetsByDPR(_ref) {\n var x = _ref.x,\n y = _ref.y;\n var win = window;\n var dpr = win.devicePixelRatio || 1;\n return {\n x: round(x * dpr) / dpr || 0,\n y: round(y * dpr) / dpr || 0\n };\n}\n\nexport function mapToStyles(_ref2) {\n var _Object$assign2;\n\n var popper = _ref2.popper,\n popperRect = _ref2.popperRect,\n placement = _ref2.placement,\n variation = _ref2.variation,\n offsets = _ref2.offsets,\n position = _ref2.position,\n gpuAcceleration = _ref2.gpuAcceleration,\n adaptive = _ref2.adaptive,\n roundOffsets = _ref2.roundOffsets,\n isFixed = _ref2.isFixed;\n var _offsets$x = offsets.x,\n x = _offsets$x === void 0 ? 0 : _offsets$x,\n _offsets$y = offsets.y,\n y = _offsets$y === void 0 ? 0 : _offsets$y;\n\n var _ref3 = typeof roundOffsets === 'function' ? roundOffsets({\n x: x,\n y: y\n }) : {\n x: x,\n y: y\n };\n\n x = _ref3.x;\n y = _ref3.y;\n var hasX = offsets.hasOwnProperty('x');\n var hasY = offsets.hasOwnProperty('y');\n var sideX = left;\n var sideY = top;\n var win = window;\n\n if (adaptive) {\n var offsetParent = getOffsetParent(popper);\n var heightProp = 'clientHeight';\n var widthProp = 'clientWidth';\n\n if (offsetParent === getWindow(popper)) {\n offsetParent = getDocumentElement(popper);\n\n if (getComputedStyle(offsetParent).position !== 'static' && position === 'absolute') {\n heightProp = 'scrollHeight';\n widthProp = 'scrollWidth';\n }\n } // $FlowFixMe[incompatible-cast]: force type refinement, we compare offsetParent with window above, but Flow doesn't detect it\n\n\n offsetParent = offsetParent;\n\n if (placement === top || (placement === left || placement === right) && variation === end) {\n sideY = bottom;\n var offsetY = isFixed && win.visualViewport ? win.visualViewport.height : // $FlowFixMe[prop-missing]\n offsetParent[heightProp];\n y -= offsetY - popperRect.height;\n y *= gpuAcceleration ? 1 : -1;\n }\n\n if (placement === left || (placement === top || placement === bottom) && variation === end) {\n sideX = right;\n var offsetX = isFixed && win.visualViewport ? win.visualViewport.width : // $FlowFixMe[prop-missing]\n offsetParent[widthProp];\n x -= offsetX - popperRect.width;\n x *= gpuAcceleration ? 1 : -1;\n }\n }\n\n var commonStyles = Object.assign({\n position: position\n }, adaptive && unsetSides);\n\n var _ref4 = roundOffsets === true ? roundOffsetsByDPR({\n x: x,\n y: y\n }) : {\n x: x,\n y: y\n };\n\n x = _ref4.x;\n y = _ref4.y;\n\n if (gpuAcceleration) {\n var _Object$assign;\n\n return Object.assign({}, commonStyles, (_Object$assign = {}, _Object$assign[sideY] = hasY ? '0' : '', _Object$assign[sideX] = hasX ? '0' : '', _Object$assign.transform = (win.devicePixelRatio || 1) <= 1 ? \"translate(\" + x + \"px, \" + y + \"px)\" : \"translate3d(\" + x + \"px, \" + y + \"px, 0)\", _Object$assign));\n }\n\n return Object.assign({}, commonStyles, (_Object$assign2 = {}, _Object$assign2[sideY] = hasY ? y + \"px\" : '', _Object$assign2[sideX] = hasX ? x + \"px\" : '', _Object$assign2.transform = '', _Object$assign2));\n}\n\nfunction computeStyles(_ref5) {\n var state = _ref5.state,\n options = _ref5.options;\n var _options$gpuAccelerat = options.gpuAcceleration,\n gpuAcceleration = _options$gpuAccelerat === void 0 ? true : _options$gpuAccelerat,\n _options$adaptive = options.adaptive,\n adaptive = _options$adaptive === void 0 ? true : _options$adaptive,\n _options$roundOffsets = options.roundOffsets,\n roundOffsets = _options$roundOffsets === void 0 ? true : _options$roundOffsets;\n\n if (process.env.NODE_ENV !== \"production\") {\n var transitionProperty = getComputedStyle(state.elements.popper).transitionProperty || '';\n\n if (adaptive && ['transform', 'top', 'right', 'bottom', 'left'].some(function (property) {\n return transitionProperty.indexOf(property) >= 0;\n })) {\n console.warn(['Popper: Detected CSS transitions on at least one of the following', 'CSS properties: \"transform\", \"top\", \"right\", \"bottom\", \"left\".', '\\n\\n', 'Disable the \"computeStyles\" modifier\\'s `adaptive` option to allow', 'for smooth transitions, or remove these properties from the CSS', 'transition declaration on the popper element if only transitioning', 'opacity or background-color for example.', '\\n\\n', 'We recommend using the popper element as a wrapper around an inner', 'element that can have any CSS property transitioned for animations.'].join(' '));\n }\n }\n\n var commonStyles = {\n placement: getBasePlacement(state.placement),\n variation: getVariation(state.placement),\n popper: state.elements.popper,\n popperRect: state.rects.popper,\n gpuAcceleration: gpuAcceleration,\n isFixed: state.options.strategy === 'fixed'\n };\n\n if (state.modifiersData.popperOffsets != null) {\n state.styles.popper = Object.assign({}, state.styles.popper, mapToStyles(Object.assign({}, commonStyles, {\n offsets: state.modifiersData.popperOffsets,\n position: state.options.strategy,\n adaptive: adaptive,\n roundOffsets: roundOffsets\n })));\n }\n\n if (state.modifiersData.arrow != null) {\n state.styles.arrow = Object.assign({}, state.styles.arrow, mapToStyles(Object.assign({}, commonStyles, {\n offsets: state.modifiersData.arrow,\n position: 'absolute',\n adaptive: false,\n roundOffsets: roundOffsets\n })));\n }\n\n state.attributes.popper = Object.assign({}, state.attributes.popper, {\n 'data-popper-placement': state.placement\n });\n} // eslint-disable-next-line import/no-unused-modules\n\n\nexport default {\n name: 'computeStyles',\n enabled: true,\n phase: 'beforeWrite',\n fn: computeStyles,\n data: {}\n};","import getNodeName from \"../dom-utils/getNodeName.js\";\nimport { isHTMLElement } from \"../dom-utils/instanceOf.js\"; // This modifier takes the styles prepared by the `computeStyles` modifier\n// and applies them to the HTMLElements such as popper and arrow\n\nfunction applyStyles(_ref) {\n var state = _ref.state;\n Object.keys(state.elements).forEach(function (name) {\n var style = state.styles[name] || {};\n var attributes = state.attributes[name] || {};\n var element = state.elements[name]; // arrow is optional + virtual elements\n\n if (!isHTMLElement(element) || !getNodeName(element)) {\n return;\n } // Flow doesn't support to extend this property, but it's the most\n // effective way to apply styles to an HTMLElement\n // $FlowFixMe[cannot-write]\n\n\n Object.assign(element.style, style);\n Object.keys(attributes).forEach(function (name) {\n var value = attributes[name];\n\n if (value === false) {\n element.removeAttribute(name);\n } else {\n element.setAttribute(name, value === true ? '' : value);\n }\n });\n });\n}\n\nfunction effect(_ref2) {\n var state = _ref2.state;\n var initialStyles = {\n popper: {\n position: state.options.strategy,\n left: '0',\n top: '0',\n margin: '0'\n },\n arrow: {\n position: 'absolute'\n },\n reference: {}\n };\n Object.assign(state.elements.popper.style, initialStyles.popper);\n state.styles = initialStyles;\n\n if (state.elements.arrow) {\n Object.assign(state.elements.arrow.style, initialStyles.arrow);\n }\n\n return function () {\n Object.keys(state.elements).forEach(function (name) {\n var element = state.elements[name];\n var attributes = state.attributes[name] || {};\n var styleProperties = Object.keys(state.styles.hasOwnProperty(name) ? state.styles[name] : initialStyles[name]); // Set all values to an empty string to unset them\n\n var style = styleProperties.reduce(function (style, property) {\n style[property] = '';\n return style;\n }, {}); // arrow is optional + virtual elements\n\n if (!isHTMLElement(element) || !getNodeName(element)) {\n return;\n }\n\n Object.assign(element.style, style);\n Object.keys(attributes).forEach(function (attribute) {\n element.removeAttribute(attribute);\n });\n });\n };\n} // eslint-disable-next-line import/no-unused-modules\n\n\nexport default {\n name: 'applyStyles',\n enabled: true,\n phase: 'write',\n fn: applyStyles,\n effect: effect,\n requires: ['computeStyles']\n};","import getBasePlacement from \"../utils/getBasePlacement.js\";\nimport { top, left, right, placements } from \"../enums.js\"; // eslint-disable-next-line import/no-unused-modules\n\nexport function distanceAndSkiddingToXY(placement, rects, offset) {\n var basePlacement = getBasePlacement(placement);\n var invertDistance = [left, top].indexOf(basePlacement) >= 0 ? -1 : 1;\n\n var _ref = typeof offset === 'function' ? offset(Object.assign({}, rects, {\n placement: placement\n })) : offset,\n skidding = _ref[0],\n distance = _ref[1];\n\n skidding = skidding || 0;\n distance = (distance || 0) * invertDistance;\n return [left, right].indexOf(basePlacement) >= 0 ? {\n x: distance,\n y: skidding\n } : {\n x: skidding,\n y: distance\n };\n}\n\nfunction offset(_ref2) {\n var state = _ref2.state,\n options = _ref2.options,\n name = _ref2.name;\n var _options$offset = options.offset,\n offset = _options$offset === void 0 ? [0, 0] : _options$offset;\n var data = placements.reduce(function (acc, placement) {\n acc[placement] = distanceAndSkiddingToXY(placement, state.rects, offset);\n return acc;\n }, {});\n var _data$state$placement = data[state.placement],\n x = _data$state$placement.x,\n y = _data$state$placement.y;\n\n if (state.modifiersData.popperOffsets != null) {\n state.modifiersData.popperOffsets.x += x;\n state.modifiersData.popperOffsets.y += y;\n }\n\n state.modifiersData[name] = data;\n} // eslint-disable-next-line import/no-unused-modules\n\n\nexport default {\n name: 'offset',\n enabled: true,\n phase: 'main',\n requires: ['popperOffsets'],\n fn: offset\n};","var hash = {\n left: 'right',\n right: 'left',\n bottom: 'top',\n top: 'bottom'\n};\nexport default function getOppositePlacement(placement) {\n return placement.replace(/left|right|bottom|top/g, function (matched) {\n return hash[matched];\n });\n}","var hash = {\n start: 'end',\n end: 'start'\n};\nexport default function getOppositeVariationPlacement(placement) {\n return placement.replace(/start|end/g, function (matched) {\n return hash[matched];\n });\n}","import getWindow from \"./getWindow.js\";\nimport getDocumentElement from \"./getDocumentElement.js\";\nimport getWindowScrollBarX from \"./getWindowScrollBarX.js\";\nexport default function getViewportRect(element) {\n var win = getWindow(element);\n var html = getDocumentElement(element);\n var visualViewport = win.visualViewport;\n var width = html.clientWidth;\n var height = html.clientHeight;\n var x = 0;\n var y = 0; // NB: This isn't supported on iOS <= 12. If the keyboard is open, the popper\n // can be obscured underneath it.\n // Also, `html.clientHeight` adds the bottom bar height in Safari iOS, even\n // if it isn't open, so if this isn't available, the popper will be detected\n // to overflow the bottom of the screen too early.\n\n if (visualViewport) {\n width = visualViewport.width;\n height = visualViewport.height; // Uses Layout Viewport (like Chrome; Safari does not currently)\n // In Chrome, it returns a value very close to 0 (+/-) but contains rounding\n // errors due to floating point numbers, so we need to check precision.\n // Safari returns a number <= 0, usually < -1 when pinch-zoomed\n // Feature detection fails in mobile emulation mode in Chrome.\n // Math.abs(win.innerWidth / visualViewport.scale - visualViewport.width) <\n // 0.001\n // Fallback here: \"Not Safari\" userAgent\n\n if (!/^((?!chrome|android).)*safari/i.test(navigator.userAgent)) {\n x = visualViewport.offsetLeft;\n y = visualViewport.offsetTop;\n }\n }\n\n return {\n width: width,\n height: height,\n x: x + getWindowScrollBarX(element),\n y: y\n };\n}","import getDocumentElement from \"./getDocumentElement.js\";\nimport getComputedStyle from \"./getComputedStyle.js\";\nimport getWindowScrollBarX from \"./getWindowScrollBarX.js\";\nimport getWindowScroll from \"./getWindowScroll.js\";\nimport { max } from \"../utils/math.js\"; // Gets the entire size of the scrollable document area, even extending outside\n// of the `` and `` rect bounds if horizontally scrollable\n\nexport default function getDocumentRect(element) {\n var _element$ownerDocumen;\n\n var html = getDocumentElement(element);\n var winScroll = getWindowScroll(element);\n var body = (_element$ownerDocumen = element.ownerDocument) == null ? void 0 : _element$ownerDocumen.body;\n var width = max(html.scrollWidth, html.clientWidth, body ? body.scrollWidth : 0, body ? body.clientWidth : 0);\n var height = max(html.scrollHeight, html.clientHeight, body ? body.scrollHeight : 0, body ? body.clientHeight : 0);\n var x = -winScroll.scrollLeft + getWindowScrollBarX(element);\n var y = -winScroll.scrollTop;\n\n if (getComputedStyle(body || html).direction === 'rtl') {\n x += max(html.clientWidth, body ? body.clientWidth : 0) - width;\n }\n\n return {\n width: width,\n height: height,\n x: x,\n y: y\n };\n}","import { isShadowRoot } from \"./instanceOf.js\";\nexport default function contains(parent, child) {\n var rootNode = child.getRootNode && child.getRootNode(); // First, attempt with faster native method\n\n if (parent.contains(child)) {\n return true;\n } // then fallback to custom implementation with Shadow DOM support\n else if (rootNode && isShadowRoot(rootNode)) {\n var next = child;\n\n do {\n if (next && parent.isSameNode(next)) {\n return true;\n } // $FlowFixMe[prop-missing]: need a better way to handle this...\n\n\n next = next.parentNode || next.host;\n } while (next);\n } // Give up, the result is false\n\n\n return false;\n}","export default function rectToClientRect(rect) {\n return Object.assign({}, rect, {\n left: rect.x,\n top: rect.y,\n right: rect.x + rect.width,\n bottom: rect.y + rect.height\n });\n}","import { viewport } from \"../enums.js\";\nimport getViewportRect from \"./getViewportRect.js\";\nimport getDocumentRect from \"./getDocumentRect.js\";\nimport listScrollParents from \"./listScrollParents.js\";\nimport getOffsetParent from \"./getOffsetParent.js\";\nimport getDocumentElement from \"./getDocumentElement.js\";\nimport getComputedStyle from \"./getComputedStyle.js\";\nimport { isElement, isHTMLElement } from \"./instanceOf.js\";\nimport getBoundingClientRect from \"./getBoundingClientRect.js\";\nimport getParentNode from \"./getParentNode.js\";\nimport contains from \"./contains.js\";\nimport getNodeName from \"./getNodeName.js\";\nimport rectToClientRect from \"../utils/rectToClientRect.js\";\nimport { max, min } from \"../utils/math.js\";\n\nfunction getInnerBoundingClientRect(element) {\n var rect = getBoundingClientRect(element);\n rect.top = rect.top + element.clientTop;\n rect.left = rect.left + element.clientLeft;\n rect.bottom = rect.top + element.clientHeight;\n rect.right = rect.left + element.clientWidth;\n rect.width = element.clientWidth;\n rect.height = element.clientHeight;\n rect.x = rect.left;\n rect.y = rect.top;\n return rect;\n}\n\nfunction getClientRectFromMixedType(element, clippingParent) {\n return clippingParent === viewport ? rectToClientRect(getViewportRect(element)) : isElement(clippingParent) ? getInnerBoundingClientRect(clippingParent) : rectToClientRect(getDocumentRect(getDocumentElement(element)));\n} // A \"clipping parent\" is an overflowable container with the characteristic of\n// clipping (or hiding) overflowing elements with a position different from\n// `initial`\n\n\nfunction getClippingParents(element) {\n var clippingParents = listScrollParents(getParentNode(element));\n var canEscapeClipping = ['absolute', 'fixed'].indexOf(getComputedStyle(element).position) >= 0;\n var clipperElement = canEscapeClipping && isHTMLElement(element) ? getOffsetParent(element) : element;\n\n if (!isElement(clipperElement)) {\n return [];\n } // $FlowFixMe[incompatible-return]: https://github.com/facebook/flow/issues/1414\n\n\n return clippingParents.filter(function (clippingParent) {\n return isElement(clippingParent) && contains(clippingParent, clipperElement) && getNodeName(clippingParent) !== 'body';\n });\n} // Gets the maximum area that the element is visible in due to any number of\n// clipping parents\n\n\nexport default function getClippingRect(element, boundary, rootBoundary) {\n var mainClippingParents = boundary === 'clippingParents' ? getClippingParents(element) : [].concat(boundary);\n var clippingParents = [].concat(mainClippingParents, [rootBoundary]);\n var firstClippingParent = clippingParents[0];\n var clippingRect = clippingParents.reduce(function (accRect, clippingParent) {\n var rect = getClientRectFromMixedType(element, clippingParent);\n accRect.top = max(rect.top, accRect.top);\n accRect.right = min(rect.right, accRect.right);\n accRect.bottom = min(rect.bottom, accRect.bottom);\n accRect.left = max(rect.left, accRect.left);\n return accRect;\n }, getClientRectFromMixedType(element, firstClippingParent));\n clippingRect.width = clippingRect.right - clippingRect.left;\n clippingRect.height = clippingRect.bottom - clippingRect.top;\n clippingRect.x = clippingRect.left;\n clippingRect.y = clippingRect.top;\n return clippingRect;\n}","export default function getFreshSideObject() {\n return {\n top: 0,\n right: 0,\n bottom: 0,\n left: 0\n };\n}","import getFreshSideObject from \"./getFreshSideObject.js\";\nexport default function mergePaddingObject(paddingObject) {\n return Object.assign({}, getFreshSideObject(), paddingObject);\n}","export default function expandToHashMap(value, keys) {\n return keys.reduce(function (hashMap, key) {\n hashMap[key] = value;\n return hashMap;\n }, {});\n}","import getClippingRect from \"../dom-utils/getClippingRect.js\";\nimport getDocumentElement from \"../dom-utils/getDocumentElement.js\";\nimport getBoundingClientRect from \"../dom-utils/getBoundingClientRect.js\";\nimport computeOffsets from \"./computeOffsets.js\";\nimport rectToClientRect from \"./rectToClientRect.js\";\nimport { clippingParents, reference, popper, bottom, top, right, basePlacements, viewport } from \"../enums.js\";\nimport { isElement } from \"../dom-utils/instanceOf.js\";\nimport mergePaddingObject from \"./mergePaddingObject.js\";\nimport expandToHashMap from \"./expandToHashMap.js\"; // eslint-disable-next-line import/no-unused-modules\n\nexport default function detectOverflow(state, options) {\n if (options === void 0) {\n options = {};\n }\n\n var _options = options,\n _options$placement = _options.placement,\n placement = _options$placement === void 0 ? state.placement : _options$placement,\n _options$boundary = _options.boundary,\n boundary = _options$boundary === void 0 ? clippingParents : _options$boundary,\n _options$rootBoundary = _options.rootBoundary,\n rootBoundary = _options$rootBoundary === void 0 ? viewport : _options$rootBoundary,\n _options$elementConte = _options.elementContext,\n elementContext = _options$elementConte === void 0 ? popper : _options$elementConte,\n _options$altBoundary = _options.altBoundary,\n altBoundary = _options$altBoundary === void 0 ? false : _options$altBoundary,\n _options$padding = _options.padding,\n padding = _options$padding === void 0 ? 0 : _options$padding;\n var paddingObject = mergePaddingObject(typeof padding !== 'number' ? padding : expandToHashMap(padding, basePlacements));\n var altContext = elementContext === popper ? reference : popper;\n var popperRect = state.rects.popper;\n var element = state.elements[altBoundary ? altContext : elementContext];\n var clippingClientRect = getClippingRect(isElement(element) ? element : element.contextElement || getDocumentElement(state.elements.popper), boundary, rootBoundary);\n var referenceClientRect = getBoundingClientRect(state.elements.reference);\n var popperOffsets = computeOffsets({\n reference: referenceClientRect,\n element: popperRect,\n strategy: 'absolute',\n placement: placement\n });\n var popperClientRect = rectToClientRect(Object.assign({}, popperRect, popperOffsets));\n var elementClientRect = elementContext === popper ? popperClientRect : referenceClientRect; // positive = overflowing the clipping rect\n // 0 or negative = within the clipping rect\n\n var overflowOffsets = {\n top: clippingClientRect.top - elementClientRect.top + paddingObject.top,\n bottom: elementClientRect.bottom - clippingClientRect.bottom + paddingObject.bottom,\n left: clippingClientRect.left - elementClientRect.left + paddingObject.left,\n right: elementClientRect.right - clippingClientRect.right + paddingObject.right\n };\n var offsetData = state.modifiersData.offset; // Offsets can be applied only to the popper element\n\n if (elementContext === popper && offsetData) {\n var offset = offsetData[placement];\n Object.keys(overflowOffsets).forEach(function (key) {\n var multiply = [right, bottom].indexOf(key) >= 0 ? 1 : -1;\n var axis = [top, bottom].indexOf(key) >= 0 ? 'y' : 'x';\n overflowOffsets[key] += offset[axis] * multiply;\n });\n }\n\n return overflowOffsets;\n}","import getVariation from \"./getVariation.js\";\nimport { variationPlacements, basePlacements, placements as allPlacements } from \"../enums.js\";\nimport detectOverflow from \"./detectOverflow.js\";\nimport getBasePlacement from \"./getBasePlacement.js\";\nexport default function computeAutoPlacement(state, options) {\n if (options === void 0) {\n options = {};\n }\n\n var _options = options,\n placement = _options.placement,\n boundary = _options.boundary,\n rootBoundary = _options.rootBoundary,\n padding = _options.padding,\n flipVariations = _options.flipVariations,\n _options$allowedAutoP = _options.allowedAutoPlacements,\n allowedAutoPlacements = _options$allowedAutoP === void 0 ? allPlacements : _options$allowedAutoP;\n var variation = getVariation(placement);\n var placements = variation ? flipVariations ? variationPlacements : variationPlacements.filter(function (placement) {\n return getVariation(placement) === variation;\n }) : basePlacements;\n var allowedPlacements = placements.filter(function (placement) {\n return allowedAutoPlacements.indexOf(placement) >= 0;\n });\n\n if (allowedPlacements.length === 0) {\n allowedPlacements = placements;\n\n if (process.env.NODE_ENV !== \"production\") {\n console.error(['Popper: The `allowedAutoPlacements` option did not allow any', 'placements. Ensure the `placement` option matches the variation', 'of the allowed placements.', 'For example, \"auto\" cannot be used to allow \"bottom-start\".', 'Use \"auto-start\" instead.'].join(' '));\n }\n } // $FlowFixMe[incompatible-type]: Flow seems to have problems with two array unions...\n\n\n var overflows = allowedPlacements.reduce(function (acc, placement) {\n acc[placement] = detectOverflow(state, {\n placement: placement,\n boundary: boundary,\n rootBoundary: rootBoundary,\n padding: padding\n })[getBasePlacement(placement)];\n return acc;\n }, {});\n return Object.keys(overflows).sort(function (a, b) {\n return overflows[a] - overflows[b];\n });\n}","import getOppositePlacement from \"../utils/getOppositePlacement.js\";\nimport getBasePlacement from \"../utils/getBasePlacement.js\";\nimport getOppositeVariationPlacement from \"../utils/getOppositeVariationPlacement.js\";\nimport detectOverflow from \"../utils/detectOverflow.js\";\nimport computeAutoPlacement from \"../utils/computeAutoPlacement.js\";\nimport { bottom, top, start, right, left, auto } from \"../enums.js\";\nimport getVariation from \"../utils/getVariation.js\"; // eslint-disable-next-line import/no-unused-modules\n\nfunction getExpandedFallbackPlacements(placement) {\n if (getBasePlacement(placement) === auto) {\n return [];\n }\n\n var oppositePlacement = getOppositePlacement(placement);\n return [getOppositeVariationPlacement(placement), oppositePlacement, getOppositeVariationPlacement(oppositePlacement)];\n}\n\nfunction flip(_ref) {\n var state = _ref.state,\n options = _ref.options,\n name = _ref.name;\n\n if (state.modifiersData[name]._skip) {\n return;\n }\n\n var _options$mainAxis = options.mainAxis,\n checkMainAxis = _options$mainAxis === void 0 ? true : _options$mainAxis,\n _options$altAxis = options.altAxis,\n checkAltAxis = _options$altAxis === void 0 ? true : _options$altAxis,\n specifiedFallbackPlacements = options.fallbackPlacements,\n padding = options.padding,\n boundary = options.boundary,\n rootBoundary = options.rootBoundary,\n altBoundary = options.altBoundary,\n _options$flipVariatio = options.flipVariations,\n flipVariations = _options$flipVariatio === void 0 ? true : _options$flipVariatio,\n allowedAutoPlacements = options.allowedAutoPlacements;\n var preferredPlacement = state.options.placement;\n var basePlacement = getBasePlacement(preferredPlacement);\n var isBasePlacement = basePlacement === preferredPlacement;\n var fallbackPlacements = specifiedFallbackPlacements || (isBasePlacement || !flipVariations ? [getOppositePlacement(preferredPlacement)] : getExpandedFallbackPlacements(preferredPlacement));\n var placements = [preferredPlacement].concat(fallbackPlacements).reduce(function (acc, placement) {\n return acc.concat(getBasePlacement(placement) === auto ? computeAutoPlacement(state, {\n placement: placement,\n boundary: boundary,\n rootBoundary: rootBoundary,\n padding: padding,\n flipVariations: flipVariations,\n allowedAutoPlacements: allowedAutoPlacements\n }) : placement);\n }, []);\n var referenceRect = state.rects.reference;\n var popperRect = state.rects.popper;\n var checksMap = new Map();\n var makeFallbackChecks = true;\n var firstFittingPlacement = placements[0];\n\n for (var i = 0; i < placements.length; i++) {\n var placement = placements[i];\n\n var _basePlacement = getBasePlacement(placement);\n\n var isStartVariation = getVariation(placement) === start;\n var isVertical = [top, bottom].indexOf(_basePlacement) >= 0;\n var len = isVertical ? 'width' : 'height';\n var overflow = detectOverflow(state, {\n placement: placement,\n boundary: boundary,\n rootBoundary: rootBoundary,\n altBoundary: altBoundary,\n padding: padding\n });\n var mainVariationSide = isVertical ? isStartVariation ? right : left : isStartVariation ? bottom : top;\n\n if (referenceRect[len] > popperRect[len]) {\n mainVariationSide = getOppositePlacement(mainVariationSide);\n }\n\n var altVariationSide = getOppositePlacement(mainVariationSide);\n var checks = [];\n\n if (checkMainAxis) {\n checks.push(overflow[_basePlacement] <= 0);\n }\n\n if (checkAltAxis) {\n checks.push(overflow[mainVariationSide] <= 0, overflow[altVariationSide] <= 0);\n }\n\n if (checks.every(function (check) {\n return check;\n })) {\n firstFittingPlacement = placement;\n makeFallbackChecks = false;\n break;\n }\n\n checksMap.set(placement, checks);\n }\n\n if (makeFallbackChecks) {\n // `2` may be desired in some cases – research later\n var numberOfChecks = flipVariations ? 3 : 1;\n\n var _loop = function _loop(_i) {\n var fittingPlacement = placements.find(function (placement) {\n var checks = checksMap.get(placement);\n\n if (checks) {\n return checks.slice(0, _i).every(function (check) {\n return check;\n });\n }\n });\n\n if (fittingPlacement) {\n firstFittingPlacement = fittingPlacement;\n return \"break\";\n }\n };\n\n for (var _i = numberOfChecks; _i > 0; _i--) {\n var _ret = _loop(_i);\n\n if (_ret === \"break\") break;\n }\n }\n\n if (state.placement !== firstFittingPlacement) {\n state.modifiersData[name]._skip = true;\n state.placement = firstFittingPlacement;\n state.reset = true;\n }\n} // eslint-disable-next-line import/no-unused-modules\n\n\nexport default {\n name: 'flip',\n enabled: true,\n phase: 'main',\n fn: flip,\n requiresIfExists: ['offset'],\n data: {\n _skip: false\n }\n};","export default function getAltAxis(axis) {\n return axis === 'x' ? 'y' : 'x';\n}","import { max as mathMax, min as mathMin } from \"./math.js\";\nexport function within(min, value, max) {\n return mathMax(min, mathMin(value, max));\n}\nexport function withinMaxClamp(min, value, max) {\n var v = within(min, value, max);\n return v > max ? max : v;\n}","import { top, left, right, bottom, start } from \"../enums.js\";\nimport getBasePlacement from \"../utils/getBasePlacement.js\";\nimport getMainAxisFromPlacement from \"../utils/getMainAxisFromPlacement.js\";\nimport getAltAxis from \"../utils/getAltAxis.js\";\nimport { within, withinMaxClamp } from \"../utils/within.js\";\nimport getLayoutRect from \"../dom-utils/getLayoutRect.js\";\nimport getOffsetParent from \"../dom-utils/getOffsetParent.js\";\nimport detectOverflow from \"../utils/detectOverflow.js\";\nimport getVariation from \"../utils/getVariation.js\";\nimport getFreshSideObject from \"../utils/getFreshSideObject.js\";\nimport { min as mathMin, max as mathMax } from \"../utils/math.js\";\n\nfunction preventOverflow(_ref) {\n var state = _ref.state,\n options = _ref.options,\n name = _ref.name;\n var _options$mainAxis = options.mainAxis,\n checkMainAxis = _options$mainAxis === void 0 ? true : _options$mainAxis,\n _options$altAxis = options.altAxis,\n checkAltAxis = _options$altAxis === void 0 ? false : _options$altAxis,\n boundary = options.boundary,\n rootBoundary = options.rootBoundary,\n altBoundary = options.altBoundary,\n padding = options.padding,\n _options$tether = options.tether,\n tether = _options$tether === void 0 ? true : _options$tether,\n _options$tetherOffset = options.tetherOffset,\n tetherOffset = _options$tetherOffset === void 0 ? 0 : _options$tetherOffset;\n var overflow = detectOverflow(state, {\n boundary: boundary,\n rootBoundary: rootBoundary,\n padding: padding,\n altBoundary: altBoundary\n });\n var basePlacement = getBasePlacement(state.placement);\n var variation = getVariation(state.placement);\n var isBasePlacement = !variation;\n var mainAxis = getMainAxisFromPlacement(basePlacement);\n var altAxis = getAltAxis(mainAxis);\n var popperOffsets = state.modifiersData.popperOffsets;\n var referenceRect = state.rects.reference;\n var popperRect = state.rects.popper;\n var tetherOffsetValue = typeof tetherOffset === 'function' ? tetherOffset(Object.assign({}, state.rects, {\n placement: state.placement\n })) : tetherOffset;\n var normalizedTetherOffsetValue = typeof tetherOffsetValue === 'number' ? {\n mainAxis: tetherOffsetValue,\n altAxis: tetherOffsetValue\n } : Object.assign({\n mainAxis: 0,\n altAxis: 0\n }, tetherOffsetValue);\n var offsetModifierState = state.modifiersData.offset ? state.modifiersData.offset[state.placement] : null;\n var data = {\n x: 0,\n y: 0\n };\n\n if (!popperOffsets) {\n return;\n }\n\n if (checkMainAxis) {\n var _offsetModifierState$;\n\n var mainSide = mainAxis === 'y' ? top : left;\n var altSide = mainAxis === 'y' ? bottom : right;\n var len = mainAxis === 'y' ? 'height' : 'width';\n var offset = popperOffsets[mainAxis];\n var min = offset + overflow[mainSide];\n var max = offset - overflow[altSide];\n var additive = tether ? -popperRect[len] / 2 : 0;\n var minLen = variation === start ? referenceRect[len] : popperRect[len];\n var maxLen = variation === start ? -popperRect[len] : -referenceRect[len]; // We need to include the arrow in the calculation so the arrow doesn't go\n // outside the reference bounds\n\n var arrowElement = state.elements.arrow;\n var arrowRect = tether && arrowElement ? getLayoutRect(arrowElement) : {\n width: 0,\n height: 0\n };\n var arrowPaddingObject = state.modifiersData['arrow#persistent'] ? state.modifiersData['arrow#persistent'].padding : getFreshSideObject();\n var arrowPaddingMin = arrowPaddingObject[mainSide];\n var arrowPaddingMax = arrowPaddingObject[altSide]; // If the reference length is smaller than the arrow length, we don't want\n // to include its full size in the calculation. If the reference is small\n // and near the edge of a boundary, the popper can overflow even if the\n // reference is not overflowing as well (e.g. virtual elements with no\n // width or height)\n\n var arrowLen = within(0, referenceRect[len], arrowRect[len]);\n var minOffset = isBasePlacement ? referenceRect[len] / 2 - additive - arrowLen - arrowPaddingMin - normalizedTetherOffsetValue.mainAxis : minLen - arrowLen - arrowPaddingMin - normalizedTetherOffsetValue.mainAxis;\n var maxOffset = isBasePlacement ? -referenceRect[len] / 2 + additive + arrowLen + arrowPaddingMax + normalizedTetherOffsetValue.mainAxis : maxLen + arrowLen + arrowPaddingMax + normalizedTetherOffsetValue.mainAxis;\n var arrowOffsetParent = state.elements.arrow && getOffsetParent(state.elements.arrow);\n var clientOffset = arrowOffsetParent ? mainAxis === 'y' ? arrowOffsetParent.clientTop || 0 : arrowOffsetParent.clientLeft || 0 : 0;\n var offsetModifierValue = (_offsetModifierState$ = offsetModifierState == null ? void 0 : offsetModifierState[mainAxis]) != null ? _offsetModifierState$ : 0;\n var tetherMin = offset + minOffset - offsetModifierValue - clientOffset;\n var tetherMax = offset + maxOffset - offsetModifierValue;\n var preventedOffset = within(tether ? mathMin(min, tetherMin) : min, offset, tether ? mathMax(max, tetherMax) : max);\n popperOffsets[mainAxis] = preventedOffset;\n data[mainAxis] = preventedOffset - offset;\n }\n\n if (checkAltAxis) {\n var _offsetModifierState$2;\n\n var _mainSide = mainAxis === 'x' ? top : left;\n\n var _altSide = mainAxis === 'x' ? bottom : right;\n\n var _offset = popperOffsets[altAxis];\n\n var _len = altAxis === 'y' ? 'height' : 'width';\n\n var _min = _offset + overflow[_mainSide];\n\n var _max = _offset - overflow[_altSide];\n\n var isOriginSide = [top, left].indexOf(basePlacement) !== -1;\n\n var _offsetModifierValue = (_offsetModifierState$2 = offsetModifierState == null ? void 0 : offsetModifierState[altAxis]) != null ? _offsetModifierState$2 : 0;\n\n var _tetherMin = isOriginSide ? _min : _offset - referenceRect[_len] - popperRect[_len] - _offsetModifierValue + normalizedTetherOffsetValue.altAxis;\n\n var _tetherMax = isOriginSide ? _offset + referenceRect[_len] + popperRect[_len] - _offsetModifierValue - normalizedTetherOffsetValue.altAxis : _max;\n\n var _preventedOffset = tether && isOriginSide ? withinMaxClamp(_tetherMin, _offset, _tetherMax) : within(tether ? _tetherMin : _min, _offset, tether ? _tetherMax : _max);\n\n popperOffsets[altAxis] = _preventedOffset;\n data[altAxis] = _preventedOffset - _offset;\n }\n\n state.modifiersData[name] = data;\n} // eslint-disable-next-line import/no-unused-modules\n\n\nexport default {\n name: 'preventOverflow',\n enabled: true,\n phase: 'main',\n fn: preventOverflow,\n requiresIfExists: ['offset']\n};","import getBasePlacement from \"../utils/getBasePlacement.js\";\nimport getLayoutRect from \"../dom-utils/getLayoutRect.js\";\nimport contains from \"../dom-utils/contains.js\";\nimport getOffsetParent from \"../dom-utils/getOffsetParent.js\";\nimport getMainAxisFromPlacement from \"../utils/getMainAxisFromPlacement.js\";\nimport { within } from \"../utils/within.js\";\nimport mergePaddingObject from \"../utils/mergePaddingObject.js\";\nimport expandToHashMap from \"../utils/expandToHashMap.js\";\nimport { left, right, basePlacements, top, bottom } from \"../enums.js\";\nimport { isHTMLElement } from \"../dom-utils/instanceOf.js\"; // eslint-disable-next-line import/no-unused-modules\n\nvar toPaddingObject = function toPaddingObject(padding, state) {\n padding = typeof padding === 'function' ? padding(Object.assign({}, state.rects, {\n placement: state.placement\n })) : padding;\n return mergePaddingObject(typeof padding !== 'number' ? padding : expandToHashMap(padding, basePlacements));\n};\n\nfunction arrow(_ref) {\n var _state$modifiersData$;\n\n var state = _ref.state,\n name = _ref.name,\n options = _ref.options;\n var arrowElement = state.elements.arrow;\n var popperOffsets = state.modifiersData.popperOffsets;\n var basePlacement = getBasePlacement(state.placement);\n var axis = getMainAxisFromPlacement(basePlacement);\n var isVertical = [left, right].indexOf(basePlacement) >= 0;\n var len = isVertical ? 'height' : 'width';\n\n if (!arrowElement || !popperOffsets) {\n return;\n }\n\n var paddingObject = toPaddingObject(options.padding, state);\n var arrowRect = getLayoutRect(arrowElement);\n var minProp = axis === 'y' ? top : left;\n var maxProp = axis === 'y' ? bottom : right;\n var endDiff = state.rects.reference[len] + state.rects.reference[axis] - popperOffsets[axis] - state.rects.popper[len];\n var startDiff = popperOffsets[axis] - state.rects.reference[axis];\n var arrowOffsetParent = getOffsetParent(arrowElement);\n var clientSize = arrowOffsetParent ? axis === 'y' ? arrowOffsetParent.clientHeight || 0 : arrowOffsetParent.clientWidth || 0 : 0;\n var centerToReference = endDiff / 2 - startDiff / 2; // Make sure the arrow doesn't overflow the popper if the center point is\n // outside of the popper bounds\n\n var min = paddingObject[minProp];\n var max = clientSize - arrowRect[len] - paddingObject[maxProp];\n var center = clientSize / 2 - arrowRect[len] / 2 + centerToReference;\n var offset = within(min, center, max); // Prevents breaking syntax highlighting...\n\n var axisProp = axis;\n state.modifiersData[name] = (_state$modifiersData$ = {}, _state$modifiersData$[axisProp] = offset, _state$modifiersData$.centerOffset = offset - center, _state$modifiersData$);\n}\n\nfunction effect(_ref2) {\n var state = _ref2.state,\n options = _ref2.options;\n var _options$element = options.element,\n arrowElement = _options$element === void 0 ? '[data-popper-arrow]' : _options$element;\n\n if (arrowElement == null) {\n return;\n } // CSS selector\n\n\n if (typeof arrowElement === 'string') {\n arrowElement = state.elements.popper.querySelector(arrowElement);\n\n if (!arrowElement) {\n return;\n }\n }\n\n if (process.env.NODE_ENV !== \"production\") {\n if (!isHTMLElement(arrowElement)) {\n console.error(['Popper: \"arrow\" element must be an HTMLElement (not an SVGElement).', 'To use an SVG arrow, wrap it in an HTMLElement that will be used as', 'the arrow.'].join(' '));\n }\n }\n\n if (!contains(state.elements.popper, arrowElement)) {\n if (process.env.NODE_ENV !== \"production\") {\n console.error(['Popper: \"arrow\" modifier\\'s `element` must be a child of the popper', 'element.'].join(' '));\n }\n\n return;\n }\n\n state.elements.arrow = arrowElement;\n} // eslint-disable-next-line import/no-unused-modules\n\n\nexport default {\n name: 'arrow',\n enabled: true,\n phase: 'main',\n fn: arrow,\n effect: effect,\n requires: ['popperOffsets'],\n requiresIfExists: ['preventOverflow']\n};","import { top, bottom, left, right } from \"../enums.js\";\nimport detectOverflow from \"../utils/detectOverflow.js\";\n\nfunction getSideOffsets(overflow, rect, preventedOffsets) {\n if (preventedOffsets === void 0) {\n preventedOffsets = {\n x: 0,\n y: 0\n };\n }\n\n return {\n top: overflow.top - rect.height - preventedOffsets.y,\n right: overflow.right - rect.width + preventedOffsets.x,\n bottom: overflow.bottom - rect.height + preventedOffsets.y,\n left: overflow.left - rect.width - preventedOffsets.x\n };\n}\n\nfunction isAnySideFullyClipped(overflow) {\n return [top, right, bottom, left].some(function (side) {\n return overflow[side] >= 0;\n });\n}\n\nfunction hide(_ref) {\n var state = _ref.state,\n name = _ref.name;\n var referenceRect = state.rects.reference;\n var popperRect = state.rects.popper;\n var preventedOffsets = state.modifiersData.preventOverflow;\n var referenceOverflow = detectOverflow(state, {\n elementContext: 'reference'\n });\n var popperAltOverflow = detectOverflow(state, {\n altBoundary: true\n });\n var referenceClippingOffsets = getSideOffsets(referenceOverflow, referenceRect);\n var popperEscapeOffsets = getSideOffsets(popperAltOverflow, popperRect, preventedOffsets);\n var isReferenceHidden = isAnySideFullyClipped(referenceClippingOffsets);\n var hasPopperEscaped = isAnySideFullyClipped(popperEscapeOffsets);\n state.modifiersData[name] = {\n referenceClippingOffsets: referenceClippingOffsets,\n popperEscapeOffsets: popperEscapeOffsets,\n isReferenceHidden: isReferenceHidden,\n hasPopperEscaped: hasPopperEscaped\n };\n state.attributes.popper = Object.assign({}, state.attributes.popper, {\n 'data-popper-reference-hidden': isReferenceHidden,\n 'data-popper-escaped': hasPopperEscaped\n });\n} // eslint-disable-next-line import/no-unused-modules\n\n\nexport default {\n name: 'hide',\n enabled: true,\n phase: 'main',\n requiresIfExists: ['preventOverflow'],\n fn: hide\n};","import { popperGenerator, detectOverflow } from \"./createPopper.js\";\nimport eventListeners from \"./modifiers/eventListeners.js\";\nimport popperOffsets from \"./modifiers/popperOffsets.js\";\nimport computeStyles from \"./modifiers/computeStyles.js\";\nimport applyStyles from \"./modifiers/applyStyles.js\";\nimport offset from \"./modifiers/offset.js\";\nimport flip from \"./modifiers/flip.js\";\nimport preventOverflow from \"./modifiers/preventOverflow.js\";\nimport arrow from \"./modifiers/arrow.js\";\nimport hide from \"./modifiers/hide.js\";\nvar defaultModifiers = [eventListeners, popperOffsets, computeStyles, applyStyles, offset, flip, preventOverflow, arrow, hide];\nvar createPopper = /*#__PURE__*/popperGenerator({\n defaultModifiers: defaultModifiers\n}); // eslint-disable-next-line import/no-unused-modules\n\nexport { createPopper, popperGenerator, defaultModifiers, detectOverflow }; // eslint-disable-next-line import/no-unused-modules\n\nexport { createPopper as createPopperLite } from \"./popper-lite.js\"; // eslint-disable-next-line import/no-unused-modules\n\nexport * from \"./modifiers/index.js\";","\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nimport uuid from 'uuid'\nimport { defineComponent, ref, watch, PropType } from '@vue/composition-api'\nimport BaseInputWrapper from '@/elements/BaseInputWrapper.vue'\nimport vSelect from 'vue-select'\nimport 'vue-select/src/scss/vue-select.scss'\nimport { createPopper } from '@popperjs/core'\n\nexport default defineComponent({\n name: 'MultiSelectInput',\n props: {\n value: { type: Array as PropType, required: false, default: () => [] as string[] },\n itemsList: { type: Array as PropType, required: true },\n label: { type: String, required: false, default: '' },\n placeholder: { type: String, required: false, default: '' },\n required: { type: Boolean, required: false, default: false },\n id: { type: String, required: false, default: '' },\n enabled: { type: Boolean, required: false, default: true },\n textPropertyName: { type: String, required: false, default: '' },\n valuePropertyName: { type: String, required: false, default: '' },\n prependIcon: { type: String, required: false, default: '' },\n appendIcon: { type: String, required: false, default: '' },\n listDirectionUp: { type: Boolean, required: false, default: false },\n },\n components: {\n BaseInputWrapper,\n vSelect,\n },\n setup(props, ctx) {\n const guid = uuid.v4()\n const elementId = props.id || `multiselect-${guid}`\n\n const selected = ref([])\n\n function getKeys() {\n return selected.value.map((x) => {\n return Reflect.get(x, props.valuePropertyName)\n })\n }\n\n function getObjects() {\n const x = props.value.map((x) =>\n props.itemsList.find((y) => Reflect.get(y, props.valuePropertyName) == x)\n )\n return x\n }\n\n function handleChange() {\n const output = props.valuePropertyName ? getKeys() : selected.value\n ctx.emit('input', output)\n ctx.emit('change', output)\n }\n\n function withPopper(dropdownList: any, component: any, { width }: { width: any }) {\n dropdownList.style.width = width\n const popper = createPopper(component.$refs.toggle, dropdownList, {\n placement: 'top',\n modifiers: [\n {\n name: 'offset',\n options: {\n offset: [0, -1],\n },\n },\n {\n name: 'toggleClass',\n enabled: true,\n phase: 'write',\n fn({ state }) {\n component.$el.classList.toggle('drop-up', state.placement === 'top')\n },\n },\n ],\n })\n return () => popper.destroy()\n\n return 200\n }\n\n watch(\n () => props.value,\n () => {\n if (!props.value) return\n selected.value = props.valuePropertyName ? getObjects() : props.value\n },\n { immediate: true }\n )\n\n return {\n handleChange,\n selected,\n elementId,\n withPopper,\n }\n },\n})\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/ts-loader/index.js??ref--14-3!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MultiselectInput.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/ts-loader/index.js??ref--14-3!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MultiselectInput.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./MultiselectInput.vue?vue&type=template&id=28d2d4d6&\"\nimport script from \"./MultiselectInput.vue?vue&type=script&lang=ts&\"\nexport * from \"./MultiselectInput.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./MultiselectInput.vue?vue&type=style&index=0&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports\n\n/* vuetify-loader */\nimport installComponents from \"!../../node_modules/vuetify-loader/lib/runtime/installComponents.js\"\nimport { VSelect } from 'vuetify/lib/components/VSelect';\ninstallComponents(component, {VSelect})\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('radio-group-input',{attrs:{\"label\":\"Coaches\",\"value\":_vm.value,\"items-list\":_vm.list,\"value-property-name\":\"value\",\"text-property-name\":\"text\",\"item-class\":\"form-check form-check-inline\",\"wrapperClass\":\"input-label-inline\"},on:{\"input\":_vm.emitValue}})],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nimport { defineComponent, ref } from '@vue/composition-api'\nimport RadioGroupInput from '@/elements/RadioGroupInput.vue'\n\n//These are strings because that is what the API expects\nexport enum CoachFilters {\n ALL = '0',\n HEAD = '1',\n}\n\nexport default defineComponent({\n name: 'GroupMessageCoachFilter',\n components: { RadioGroupInput },\n props: {\n value: { type: String, default: CoachFilters.ALL, required: false },\n },\n setup(props, ctx) {\n const list = ref([\n { value: CoachFilters.ALL, text: 'All Coaches' },\n { value: CoachFilters.HEAD, text: 'Head Coach Only' },\n ])\n\n function emitValue(val: string) {\n ctx.emit('input', val)\n }\n\n return {\n list,\n emitValue,\n }\n },\n})\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??ref--14-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./GroupMessageCoachFilter.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??ref--14-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./GroupMessageCoachFilter.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./GroupMessageCoachFilter.vue?vue&type=template&id=0308fd4f&\"\nimport script from \"./GroupMessageCoachFilter.vue?vue&type=script&lang=ts&\"\nexport * from \"./GroupMessageCoachFilter.vue?vue&type=script&lang=ts&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nimport { Component, Vue, Prop, Watch } from 'vue-property-decorator'\nimport divisionsClient from '@/clients/divisionsClient'\nimport teamsClient from '@/clients/teamsClient'\nimport SelectInput from '@/elements/SelectInput.vue'\nimport MultiselectInput from '@/elements/MultiselectInput.vue'\nimport GroupMessageCoachFilter from '@/components/Communication/GroupMessageCoachFilter.vue'\nimport Loading from '@/elements/Loading.vue'\nimport { LeagueDivisionInfo } from '@/GeneratedTypes/ListInfo/LeagueDivisionInfo'\nimport { DivisionTeamInfo } from '@/GeneratedTypes/ListInfo/DivisionTeamInfo'\nimport { GroupMessageTypes } from '@/components/Communication/GroupMessageSelector/GroupMessageSelectorData'\nimport { cloneDeep } from 'lodash'\n\nexport interface FilterSelections {\n division: number\n typeProgramId: string\n teams: number[] | null\n coach: string | null\n}\n\nexport function getEmptyFilterSelection(): FilterSelections {\n return {\n division: 0,\n typeProgramId: '',\n teams: [],\n coach: null,\n }\n}\n\n@Component({\n components: {\n SelectInput,\n MultiselectInput,\n GroupMessageCoachFilter,\n Loading,\n },\n})\nexport default class GroupMessageFilter extends Vue {\n @Prop({ type: String, default: GroupMessageTypes.PAGELINK, required: true })\n private readonly groupType!: string\n @Prop({ type: Object, default: getEmptyFilterSelection, required: true })\n private readonly filters!: FilterSelections\n get divisionId(): number {\n return this.filters.division\n }\n set divisionId(n: number) {\n const f = this.filterSelections\n f.division = n\n this.emitFilters(f)\n }\n\n get teamIds(): number[] | null {\n return this.filters.teams ?? []\n }\n set teamIds(n: number[] | null) {\n const f = this.filterSelections\n f.teams = cloneDeep(n)\n this.emitFilters(f)\n }\n get coach(): string | null {\n return this.filters.coach\n }\n set coach(v: string | null) {\n const f = this.filterSelections\n f.coach = v\n this.emitFilters(f)\n }\n loading = false\n allDivisions: LeagueDivisionInfo[] | null = [] as LeagueDivisionInfo[]\n allTeams = [] as DivisionTeamInfo[]\n emitFilters(filters: FilterSelections): void {\n this.emitter(filters)\n }\n\n async mounted() {\n await this.loadData()\n const f = this.filterSelections\n this.emitFilters(f)\n }\n\n async loadData() {\n this.loading = true\n this.$emit('loading', true)\n try {\n const results = await Promise.all([this.retrieveDivisions(), this.retrieveTeams()])\n this.allDivisions = results[0]\n this.allTeams = results[1]\n if (!this.showFilter) {\n this.$emit('unconfiguredLeague')\n }\n } finally {\n this.loading = false\n this.$emit('loading', false)\n }\n }\n\n get showFilter() {\n return this.allDivisions && this.allDivisions.length > 0 && this.allTeams && this.allTeams.length > 0\n }\n get filterSelections(): FilterSelections {\n const coach = this.isRoster ? this.coach : null\n const filters = getEmptyFilterSelection()\n filters.division = this.divisionId\n filters.typeProgramId = this.programTypeId\n filters.teams = this.teamIds\n filters.coach = coach\n return filters\n }\n emitter(filters: FilterSelections) {\n this.$emit('change', filters)\n }\n\n get programTypeId(): string {\n const divisions = cloneDeep(this.allDivisions)\n if (!divisions) return ''\n const division = divisions.find((d) => d.divisionID === this.divisionId)\n if (!division || !division.typeProgramID) {\n return '0'\n }\n return division.typeProgramID\n }\n\n retrieveDivisions() {\n return divisionsClient.retrieveAll(this.upwId)\n }\n\n retrieveTeams() {\n return teamsClient.retrieveLeagueTeams({ leagueID: this.upwId })\n }\n\n get teams() {\n let teams =\n this.divisionId === 0 ? this.allTeams : this.allTeams.filter((t) => t.divisionID === this.divisionId)\n return teams.sort((a, b) => ((a.teamName ?? '') > (b.teamName ?? '') ? 1 : -1))\n }\n\n get upwId() {\n return this.$route.params.id\n }\n get isRoster() {\n return this.groupType === GroupMessageTypes.ROSTER\n }\n @Watch('groupType')\n groupChange() {\n const f = this.filterSelections\n this.emitFilters(f)\n }\n}\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??ref--14-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./GroupMessageFilter.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??ref--14-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./GroupMessageFilter.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./GroupMessageFilter.vue?vue&type=template&id=8d8ec2d0&\"\nimport script from \"./GroupMessageFilter.vue?vue&type=script&lang=ts&\"\nexport * from \"./GroupMessageFilter.vue?vue&type=script&lang=ts&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('recipient-preview-list',{staticClass:\"mb-3\",attrs:{\"recipients\":_vm.recipients.toDelimited,\"recipient-groups\":_vm.recipients.selectedGroups,\"channel\":_vm.channel}}),_c('message-body-editor',{attrs:{\"value\":_vm.value,\"channel\":_vm.channel,\"instructions\":_vm.instructions,\"read-only\":_vm.readonly},on:{\"input\":_vm.emitValue}}),_c('p',{staticClass:\"small text-muted font-italic\"},[_vm._v(_vm._s(_vm.instructions))])],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[(_vm.isEmail)?[_c('html-editor',{attrs:{\"vee-validate-rules\":\"required\",\"label\":\"Message\",\"value\":_vm.value,\"required\":\"\",\"enabled\":!_vm.readOnly},on:{\"input\":_vm.emitValue}})]:_vm._e(),(_vm.isSms)?[_c('memo-input',{attrs:{\"id\":\"sms-message-body\",\"label\":\"Message\",\"value\":_vm.value,\"halt-input\":_vm.maxCharactersReached,\"required\":\"\",\"rows\":5,\"is-read-only\":_vm.readOnly,\"max-length\":_vm.maxCharacterCount},on:{\"input\":_vm.emitValue}}),_c('div',{staticClass:\"small ml-1\"},[_c('span',{staticClass:\"font-weight-bold\"},[_vm._v(_vm._s(_vm.charactersRemaining.messages)+\" of 3 \")]),_vm._v(\"SMS pages, \"),_c('span',{staticClass:\"font-weight-bold\"},[_vm._v(_vm._s(_vm.charactersRemaining.remaining)+\" \")]),_vm._v(\"characters left \")])]:_vm._e()],2)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nimport { Component, Vue, Prop } from 'vue-property-decorator'\nimport { MessageChannelTypes } from '@/components/Communication/MessageChannelData'\nimport Count from '@/lib/support/utilities/smsCount.ts'\nimport MemoInput from '@/elements/MemoInput.vue'\nimport HtmlEditor from '@/elements/HtmlEditor2.vue'\n\n@Component({ components: { MemoInput, HtmlEditor } })\nexport default class MessageBodyEditor extends Vue {\n @Prop({ type: String, default: '', required: true })\n private readonly value!: string\n\n @Prop({ type: String, default: MessageChannelTypes.EMAIL, required: true })\n private readonly channel!: string\n\n @Prop({ type: Boolean, default: false, required: false })\n private readonly readOnly!: boolean\n\n private messageChannelTypes = MessageChannelTypes\n private maxPages = 3\n\n get charactersRemaining() {\n return Count(this.value)\n }\n\n get maxCharacterCount() {\n const c = Count(this.value)\n\n if (this.value) {\n return c.perMessage * this.maxPages\n }\n return c.perMultiMessage * this.maxPages\n }\n\n get maxCharactersReached() {\n return (\n this.charactersRemaining.messages > this.maxPages ||\n (this.charactersRemaining.messages === this.maxPages && this.charactersRemaining.remaining === 0)\n )\n }\n\n get isEmail() {\n return this.channel.toLowerCase() === MessageChannelTypes.EMAIL\n }\n\n get isSms() {\n return this.channel.toLowerCase() === MessageChannelTypes.SMS\n }\n\n emitValue(val: string) {\n this.$emit('input', val)\n }\n}\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??ref--14-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MessageBodyEditor.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??ref--14-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MessageBodyEditor.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./MessageBodyEditor.vue?vue&type=template&id=4c5793e9&\"\nimport script from \"./MessageBodyEditor.vue?vue&type=script&lang=ts&\"\nexport * from \"./MessageBodyEditor.vue?vue&type=script&lang=ts&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nimport { Component, Vue, Prop } from 'vue-property-decorator'\nimport RecipientPreviewList from '@/components/Communication/RecipientListPreview.vue'\nimport MessageBodyEditor from '@/components/Communication/MessageBodyEditor.vue'\nimport { MessageChannelTypes } from '@/components/Communication/MessageChannelData'\nimport { GroupMessageTypes } from '@/components/Communication/GroupMessageSelector/GroupMessageSelectorData'\nimport { Recipients, getEmptyRecipients } from '@/views/Programs/Communications/model/Recipients'\n\n@Component({\n components: {\n RecipientPreviewList,\n MessageBodyEditor,\n },\n})\nexport default class GroupMessageEditor extends Vue {\n @Prop({ type: String, default: MessageChannelTypes.EMAIL, required: true })\n private readonly channel!: string\n\n @Prop({ type: String, default: GroupMessageTypes.PAGELINK, required: true })\n private readonly groupType!: string\n\n @Prop({ type: String, default: MessageChannelTypes.EMAIL, required: true })\n private readonly value!: string\n\n @Prop({ type: Object, default: getEmptyRecipients, required: true })\n private readonly recipients!: Recipients\n\n @Prop({ type: Boolean, default: false, required: false })\n private readonly readonly!: Boolean\n\n emitValue(val: string) {\n this.$emit('input', val)\n }\n\n get instructions() {\n let buttonText = ''\n if (this.channel === MessageChannelTypes.EMAIL) {\n buttonText = `the participants' first name, the team name and `\n }\n if (this.groupType === GroupMessageTypes.PAGELINK) {\n return `** The above message will include ${buttonText}a link to the participants' team page.`\n }\n if (this.groupType === GroupMessageTypes.ROSTER) {\n return `** The above message will include ${buttonText} a link to the coach's roster.`\n }\n return ''\n }\n}\n\n// export interface Recipients {\n// groups: string[] | null\n// individuals: string[] | null\n// }\n\n// export function getEmptyRecipients() {\n// return {\n// groups: [] as string[],\n// individuals: [] as string[],\n// }\n// }\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??ref--14-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./GroupMessageEditor.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??ref--14-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./GroupMessageEditor.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./GroupMessageEditor.vue?vue&type=template&id=b6ac684c&\"\nimport script from \"./GroupMessageEditor.vue?vue&type=script&lang=ts&\"\nexport * from \"./GroupMessageEditor.vue?vue&type=script&lang=ts&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('h5',{staticClass:\"text-center\"},[_vm._v(\"Message\")]),(!_vm.hideSubject)?_c('TextInput',{staticClass:\"flex-form clear\",attrs:{\"label\":\"Subject\",\"value\":_vm.value,\"maxlength\":\"100\",\"required\":\"\"},on:{\"input\":_vm.emitValue}}):_vm._e()],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nimport { defineComponent } from '@vue/composition-api'\nimport TextInput from '@/elements/TextInput.vue'\n\nexport default defineComponent({\n name: 'GroupMessageSubject',\n components: { TextInput },\n props: {\n value: { type: String, default: '', required: true },\n hideSubject: { type: Boolean, default: false, required: true },\n },\n setup(props, ctx) {\n function emitValue(val: string) {\n ctx.emit('input', val)\n }\n\n return {\n emitValue,\n }\n },\n})\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??ref--14-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./GroupMessageSubject.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??ref--14-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./GroupMessageSubject.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./GroupMessageSubject.vue?vue&type=template&id=bc767910&\"\nimport script from \"./GroupMessageSubject.vue?vue&type=script&lang=ts&\"\nexport * from \"./GroupMessageSubject.vue?vue&type=script&lang=ts&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","export interface GroupMessageParameters {\n AccountNumber: string\n DivisionID: string //'0' for all\n TeamID: string // '0' for all or comma delimited string for many\n TypeProgramID: string\n CommunicationTypeID: string // 'EMAIL' or 'SMS'\n HeadCoachOnly: string | null // '0' for all coaches; '1' for head coach only\n MessageBody: string\n PreviewOnly: boolean\n SendCommunicationOn: Date | null\n MinutesToAdd: number | null\n SubjectLine: string | null\n}\n\nexport function getEmptyGroupMessageParameters(): GroupMessageParameters {\n return {\n AccountNumber: '0',\n DivisionID: '0',\n TeamID: '0',\n TypeProgramID: '',\n CommunicationTypeID: 'SMS',\n HeadCoachOnly: null,\n MessageBody: '',\n PreviewOnly: true,\n SendCommunicationOn: null,\n MinutesToAdd: null,\n SubjectLine: null,\n }\n}\n","export const rosterEmailBoilerplate =\n 'Your Team Roster is Now Available! Click the button or follow the link below to view, save and or print your team roster. If you need assistance with your volunteer login, please contact your League Director.'\n\nexport const rosterSmsBoilerplate = 'Upward Team Roster Available! Click, Login and View!'\n\nexport const teamPageEmailBoilerplate =\n 'Welcome to the team! Assignments are complete and your participant has been assigned to a team. Please click the button or follow the link below to visit your team page for Coach Contact Information, Practice Schedules and Game Schedules.'\n\nexport const teamPageSmsBoilerplate = 'Your Upward Team Page for the season is ready at '\n","\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nimport { Component, Vue, Watch, Ref } from 'vue-property-decorator'\nimport { Getter } from 'vuex-class'\nimport * as authStore from '@/store/authorization'\nimport commClient from '@/clients/communicationsClient'\nimport Loading from '@/elements/Loading.vue'\nimport VeeValidateForm from '@/elements/VeeValidateForm.vue'\nimport SectionHeader from '@/components/SectionHeader.vue'\nimport GroupMessageSelector from '@/components/Communication/GroupMessageSelector/GroupMessageSelector.vue'\nimport GroupMessageChannel from '@/components/Communication/GroupMessageChannel/GroupMessageChannel.vue'\nimport GroupMessageFilters, {\n FilterSelections,\n getEmptyFilterSelection,\n} from '@/components/Communication/GroupMessageFilter.vue'\nimport GroupMessageEditor from '@/components/Communication/GroupMessageEditor.vue'\nimport { getEmptyRecipients } from '@/views/Programs/Communications/model/Recipients'\nimport GroupMessageSubject from '@/components/Communication/GroupMessageSubject.vue'\nimport CommunicationModal from '@/components/CommunicationModal.vue'\nimport InfoModal from '@/components/InfoModal.vue'\nimport { RecipientTypes } from '@/views/Programs/Communications/ext/RecipientGroups'\nimport { MessageChannelTypes } from '@/components/Communication/MessageChannelData'\nimport {\n GroupMessageTypes,\n GroupMessageTokens,\n} from '@/components/Communication/GroupMessageSelector/GroupMessageSelectorData'\nimport { GroupMessageParameters, getEmptyGroupMessageParameters } from '@/models/GroupMessageParameters'\nimport { GroupMessageContact } from '@/models/GroupMessageContact'\nimport { MessageData, getEmptyMessageData } from '@/lib/support/models/Communication/PreviewMessage'\nimport {\n rosterEmailBoilerplate,\n rosterSmsBoilerplate,\n teamPageEmailBoilerplate,\n teamPageSmsBoilerplate,\n} from '@/lib/support/components/GroupMessage/Boilerplates.ts'\nimport { mixin as clickaway } from 'vue-clickaway'\nimport ModalDateTimePicker from '@/components/ModalDateTimePicker.vue'\nimport dayjs from 'dayjs'\nimport communicationsClient from '@/clients/communicationsClient'\nimport store from '@/store'\n\n@Component({\n components: {\n Loading,\n SectionHeader,\n GroupMessageSelector,\n GroupMessageChannel,\n GroupMessageEditor,\n GroupMessageFilters,\n CommunicationModal,\n InfoModal,\n VeeValidateForm,\n ModalDateTimePicker,\n GroupMessageSubject,\n },\n mixins: [clickaway],\n})\nexport default class GroupMessage extends Vue {\n @Getter(authStore.getterNames.firstAccountNumber, { namespace: authStore.namespace })\n private accountNumber!: string\n\n channel = ''\n groupMessageType = ''\n hideAll = false\n showPreview = false\n showEmailConfirmationModal = false\n messageBody = ''\n isPreviewing = false\n isSending = false\n isSendingEmailFromPreview = false\n isFiltersLoading = false\n recipients = getEmptyRecipients()\n previewData = getEmptyMessageData()\n filters: FilterSelections = getEmptyFilterSelection()\n division = 0\n teams: number[] = []\n coach = '0'\n subject = ''\n hideSubjectLine = false\n private showSendDrop = false\n private showScheduleSendModal = false\n private sendCommunicationOn: Date | null = null\n @Ref('form') readonly form!: HTMLFormElement\n async mounted() {\n if (this.messageID) {\n const message = await communicationsClient.getQueuedGroupMessage(parseInt(this.messageID))\n this.channel = message?.messageType === 'email' ? MessageChannelTypes.EMAIL : MessageChannelTypes.SMS\n this.groupMessageType =\n message?.groupMessageType === 'teamroster' ? GroupMessageTypes.ROSTER : GroupMessageTypes.PAGELINK\n const divisionID = message?.recipientCriteria?.divisionID ?? '0'\n //this.subject = message.subject (need to add)\n this.filters = {\n division: parseInt(divisionID),\n typeProgramId: message?.recipientCriteria?.typeProgramID ?? '',\n teams: message?.recipientCriteria?.teams ?? [],\n coach: message?.recipientCriteria?.headCoachOnly === true ? '1' : '0',\n }\n } else {\n this.channel = MessageChannelTypes.EMAIL\n this.groupMessageType = GroupMessageTypes.PAGELINK\n this.subject =\n this.groupMessageType === 'teamroster'\n ? 'Upward Team Roster is Available!'\n : 'Upward Team Assignments are Complete!'\n }\n }\n\n async sendMessageFromModal() {\n this.isSendingEmailFromPreview = true\n try {\n await this.callAPI('SEND')\n this.showEmailConfirmationModal = true\n } finally {\n this.isSendingEmailFromPreview = false\n this.showPreview = false\n }\n }\n\n async preview() {\n const formIsValid = await this.form.reportValidity()\n if (!formIsValid) return\n this.isPreviewing = true\n try {\n const preview = await this.callAPI('PREVIEW')\n this.previewData = this.composePreviewMessageData(preview)\n this.showPreview = true\n } finally {\n this.isPreviewing = false\n }\n }\n\n async send() {\n this.isSending = true\n try {\n await this.callAPI('SEND')\n this.showEmailConfirmationModal = true\n } finally {\n this.isSending = false\n }\n }\n\n async callAPI(action: 'SEND' | 'PREVIEW') {\n const params = this.composeGroupMessageParameters()\n if (action === 'SEND') params.PreviewOnly = false\n if (this.groupMessageType === GroupMessageTypes.PAGELINK) {\n return await commClient.sendTeamPageLinkGroupMessage(this.upwId, params)\n }\n\n if (this.groupMessageType === GroupMessageTypes.ROSTER) {\n return await commClient.sendTeamRosterGroupMessage(this.upwId, params)\n }\n return null\n }\n\n composeGroupMessageParameters(): GroupMessageParameters {\n const p = getEmptyGroupMessageParameters()\n p.AccountNumber = this.accountNumber\n p.CommunicationTypeID = this.channel.toUpperCase()\n p.TypeProgramID = this.filters.typeProgramId\n p.DivisionID = this.filters.division.toString()\n p.MessageBody = this.messageBody\n p.SendCommunicationOn = this.sendCommunicationOn\n p.MinutesToAdd = this.minutesToAdd\n if (this.groupMessageType === GroupMessageTypes.ROSTER) {\n p.HeadCoachOnly = this.filters.coach ?? '0'\n }\n if (this.filters.teams) {\n p.TeamID = this.filters.teams.join(',')\n }\n p.SubjectLine = this.subject\n return p\n }\n\n composePreviewMessageData(preview: GroupMessageContact[] | null): MessageData {\n if (!preview) throw Error('no preview data available')\n const contacts = this.conactList(preview)\n const m = getEmptyMessageData()\n m.messageBody = `${this.messageBody}
Team Name:
Participant Name:
${this.groupMessageToken}`\n m.messageType = this.channel\n m.individualRecipients = contacts\n m.recipientCount = contacts.length\n m.subject = this.subject\n return m\n }\n\n get groupMessageToken() {\n return GroupMessageTokens.get(this.groupMessageType)\n }\n\n conactList(preview: GroupMessageContact[]) {\n return preview\n .filter((c) => c.Contact != '')\n .map((c) => c.Contact.split(','))\n .flat()\n }\n\n get actionText() {\n if (this.channel === MessageChannelTypes.EMAIL) return 'Send Email'\n return 'Send Text'\n }\n\n get upwId() {\n return this.$route.params.id\n }\n get messageID() {\n return this.$route.params.messageId\n }\n filtersLoading(val: boolean) {\n this.isFiltersLoading = val\n }\n\n setFilters(filters: FilterSelections) {\n this.filters = filters\n }\n\n viewScheduled() {\n this.$nextTick(() => {\n this.$router.push(`/programs/league/${this.$route.params.id}/communications/scheduled`)\n })\n }\n\n setMessageBodyBoilerplate() {\n if (this.groupMessageType === GroupMessageTypes.PAGELINK) {\n if (this.channel === MessageChannelTypes.EMAIL) this.messageBody = teamPageEmailBoilerplate\n if (this.channel === MessageChannelTypes.SMS) this.messageBody = teamPageSmsBoilerplate\n }\n if (this.groupMessageType === GroupMessageTypes.ROSTER) {\n if (this.channel === MessageChannelTypes.EMAIL) this.messageBody = rosterEmailBoilerplate\n if (this.channel === MessageChannelTypes.SMS) this.messageBody = rosterSmsBoilerplate\n }\n }\n\n private toggleSendDrop() {\n this.showSendDrop = !this.showSendDrop\n }\n private sendDropAway() {\n this.showSendDrop = false\n }\n private async scheduleSend(validate: () => Promise) {\n var valid = await validate()\n this.showScheduleSendModal = valid\n }\n private get minutesToAdd(): number | null {\n if (!this.sendCommunicationOn) return null\n const now = dayjs(new Date(Date.now()))\n const sendOn = dayjs(this.sendCommunicationOn)\n return sendOn.diff(now, 'minute', false)\n }\n private get sendCommunicationOnFormatted(): string {\n return (\n this.sendCommunicationOn?.toLocaleTimeString([], {\n year: 'numeric',\n month: 'numeric',\n day: 'numeric',\n hour: 'numeric',\n minute: '2-digit',\n }) || ''\n )\n }\n\n hideSubject() {\n if (this.channel === MessageChannelTypes.SMS) {\n this.hideSubjectLine = true\n this.subject = ''\n } else {\n this.hideSubjectLine = false\n this.subject =\n this.groupMessageType === 'teamroster'\n ? 'Upward Team Roster is Available!'\n : 'Upward Team Assignments are Complete!'\n }\n }\n\n @Watch('groupMessageType')\n groupMessageTypeChanged() {\n if (this.groupMessageType === GroupMessageTypes.PAGELINK) {\n this.recipients.selectedGroups = [RecipientTypes.PARENTS]\n this.subject = 'Upward Team Assignments are Complete!'\n store.commit.communications.setSelectedGroups({ groups: [RecipientTypes.PARENTS] })\n }\n if (this.groupMessageType === GroupMessageTypes.ROSTER) {\n this.recipients.selectedGroups = [RecipientTypes.COACHES]\n this.subject = 'Upward Team Roster is Available!'\n store.commit.communications.setSelectedGroups({ groups: [RecipientTypes.COACHES] })\n }\n this.setMessageBodyBoilerplate()\n }\n\n @Watch('channel')\n channelChanged() {\n this.setMessageBodyBoilerplate()\n this.hideSubject()\n }\n\n beforeDestroy() {\n store.commit.communications.clearMessageInformation()\n }\n}\n","import mod from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/ts-loader/index.js??ref--14-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./GroupMessages.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/ts-loader/index.js??ref--14-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./GroupMessages.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./GroupMessages.vue?vue&type=template&id=66e81532&\"\nimport script from \"./GroupMessages.vue?vue&type=script&lang=ts&\"\nexport * from \"./GroupMessages.vue?vue&type=script&lang=ts&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","import store from '@/store'\nexport interface RecipientGroupOptions {\n optionText: string\n optionValue: string\n}\n\n//since these are directly tied to the database(ouch), I am putting them in one place here\n//plus Cindy had a note previously to get rid of the file these were in.\nexport enum RecipientTypes {\n PARENTS = 'Parents/Guardians',\n COACHES = 'Coaches',\n REFEREES = 'Referees',\n COMMISSIONERS = 'Commissioners',\n OTHERS = 'Other Volunteers',\n}\n\n//add ability to change the option descriptions without killing the database procedure tightly coupled with these values\n//this should all probably be refactored to NOT tightly couple the database parameters to front-end descriptions.\nexport function getRecipientGroups() {\n const retval = [] as RecipientGroupOptions[]\n retval.push({ optionText: RecipientTypes.PARENTS, optionValue: RecipientTypes.PARENTS })\n retval.push({ optionText: RecipientTypes.COACHES, optionValue: RecipientTypes.COACHES })\n if (!store.getters.leagueAbstraction.isUpwardSelect) {\n retval.push({\n optionText: store.getters.leagueAbstraction.refLabel + 's',\n optionValue: RecipientTypes.REFEREES,\n })\n }\n retval.push({ optionText: RecipientTypes.COMMISSIONERS, optionValue: RecipientTypes.COMMISSIONERS })\n retval.push({ optionText: RecipientTypes.OTHERS, optionValue: RecipientTypes.OTHERS })\n return retval\n}\n","export interface Recipients {\n selectedGroups: string[]\n toDelimited: string[] // Used in the call to send email and sms. Just the selected emails or phone numbers\n recipients: Recipient[] //List of all recipients with a flag indicating if they are selected or not\n}\n\nexport interface Recipient {\n id: string | number\n name: string\n email: string\n phone: string\n isSelected: boolean\n}\n\nexport function getEmptyRecipients(): Recipients {\n return {\n selectedGroups: [],\n toDelimited: [],\n recipients: [],\n }\n}\n\nexport function getEmptyRecipient(): Recipient {\n return {\n id: '',\n name: '',\n email: '',\n phone: '',\n isSelected: false,\n }\n}\n","export * from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./CommunicationModal.vue?vue&type=style&index=0&id=512e4ba2&lang=scss&scoped=true&\""],"sourceRoot":""}