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,SAASkR,cAAc,qBAG2B,QAAzFjT,OAAO03C,iBAAiB31C,SAASkR,cAAc,qBAAqC,eAAa,CACjG,IAAI03D,EAAM5oE,SAASkR,cAAc,WAAWgF,wBACxCugC,EAASmyB,EAAIC,IAAMD,EAAInyB,OAC3B,GAAI34B,MAAM24B,GACN,OAEJz2C,SAAS8oE,gBAAgBzqD,MAAM0qD,YAAY,uBAAwB,GAAGtyB,MAC1E,CACJ,CRmGQuyB,EACJ,EAGC/qE,OAA2B,qBAC5BA,OAA2B,mBAAI,IAEnCA,OAA2B,mBAAEyS,KAAK20D,IAClCpnE,OAA2B,mBAAEyS,KAAK+0D,I,0BSlErB,IAlDb,cAAyCsC,GAC5B,WAAAnF,GACL,IAAIqG,EAAc,cACkC,GAAhDhrE,OAAOQ,SAASgC,OAAOD,QAAQ,aAC/ByoE,EAAc,eAEqC,GAA9ChrE,OAAOQ,SAASgC,OAAOD,QAAQ,aACpCyoE,EAAc,WAIC,eAAfA,GACAC,GAAAC,GAAY,CACRC,IAAK,4EAGLC,QAAS,6BACTC,aAAc,CAACC,GAAAC,MAIfC,iBAAkB,EAClBR,YAAaA,GAGzB,CAES,iBAAAjG,GACL/lE,EAAAC,EAASC,IAAa,WAAWqgB,MAC7B,oBACA,eACA,wBACA,oDAGA,wDACA,cACA,kBACA,mDACA,+DACA,gGACA,eAEJvgB,EAAAC,EAASC,IAAa,WAAWusE,qBAAuB,gBAExDzsE,EAAAC,EAASC,IAAe,aAAa+lD,UAAUjlD,OAAOQ,SAASC,UAE/D/D,MAAMqoE,mBACV,E","sources":["webpack:///../common/ts/apps/login/components/AccountLogin/AccountLogin.html.ts","webpack:///../common/ts/apps/login/components/AccountLogin/AccountLogin.ts","webpack:///../common/ts/apps/login/components/AccountLoginModal/AccountLoginModal.ts","webpack:///../common/ts/apps/login/components/AccountLoginModal/AccountLoginModal.html.ts","webpack:///../common/ts/apps/login/components/init.ts","webpack:///../common/ts/apps/userprofile/models/User.ts","webpack:///../common/ts/apps/userprofile/models/UserAddress.ts","webpack:///../common/ts/core/adapters/Exceptions.ts","webpack:///../common/ts/core/adapters/ModalComponent.ts","webpack:///../common/ts/core/directives/ClickOutside.ts","webpack:///../common/ts/core/directives/Dropdown.ts","webpack:///../common/ts/core/directives/CopyToClipboard.ts","webpack:///../common/ts/core/directives/Tooltip/Tooltip.ts","webpack:///../common/ts/core/directives/PasswordToggle.ts","webpack:///../common/ts/core/directives/ElementInView.ts","webpack:///../common/ts/core/directives/InnerScrollTo.ts","webpack:///../common/ts/core/directives/FileHover.ts","webpack:///../common/ts/core/adapters/VueApp.ts","webpack:///../common/ts/core/adapters/VueComponent.ts","webpack:///../common/ts/core/adapters/VueItem.ts","webpack:///../common/ts/core/adapters/VueMixin.ts","webpack:///../common/ts/core/components/ErrorList/ErrorList.ts","webpack:///../common/ts/core/components/ErrorList/ErrorList.html.ts","webpack:///../common/ts/core/components/GenericDropdown/GenericDropdown.ts","webpack:///../common/ts/core/components/GenericDropdown/GenericDropdown.html.ts","webpack:///../common/ts/core/components/Paginator/Paginator.ts","webpack:///../common/ts/core/components/Paginator/Paginator.html.ts","webpack:///../common/ts/core/components/CallbackPaginator/CallbackPaginator.ts","webpack:///../common/ts/core/components/CallbackPaginator/CallbackPaginator.html.ts","webpack:///../common/ts/core/components/ColorDropdown/ColorDropdown.ts","webpack:///../common/ts/core/components/ColorDropdown/ColorDropdown.html.ts","webpack:///../common/ts/core/components/MessageList/MessageList.ts","webpack:///../common/ts/core/components/MessageList/MessageList.html.ts","webpack:///../common/ts/core/utils/Refs.ts","webpack:///../common/ts/core/components/FileUpload/FileUpload.ts","webpack:///../common/ts/core/components/FileUpload/FileUpload.html.ts","webpack:///../common/ts/core/components/Size/Size.ts","webpack:///../common/ts/core/components/Size/Size.html.ts","webpack:///../common/ts/core/components/MeasurementOption/MeasurementOption.html.ts","webpack:///../common/ts/core/components/MeasurementOption/MeasurementOption.ts","webpack:///../common/ts/core/components/FontDropdown/FontDropdown.ts","webpack:///../common/ts/core/components/FontDropdown/FontDropdown.html.ts","webpack:///../common/ts/core/components/TextElement/TextElement.ts","webpack:///../common/ts/core/components/MultiSelectionDropdown/MultiSelectionDropdown.ts","webpack:///../common/ts/core/components/MultiSelectionDropdown/MultiSelectionDropdown.html.ts","webpack:///../common/ts/core/components/init.ts","webpack:///../common/ts/core/mixins/MobileMixin.ts","webpack:///../common/ts/core/models/APIResponse.ts","webpack:///../common/ts/core/models/Collection.ts","webpack:///../common/ts/core/models/APIResource.ts","webpack:///../common/ts/core/models/Model.ts","webpack:///../common/ts/core/models/fields/Field.ts","webpack:///../common/ts/core/models/fields/ForeignField.ts","webpack:///../common/ts/core/models/fields/ForeignKeyField.ts","webpack:///../common/ts/core/models/fields/ForeignKeyURIField.ts","webpack:///../common/ts/core/models/fields/ToManyField.ts","webpack:///../common/ts/core/models/helpers/ResourceURI.ts","webpack:///../common/ts/core/services/Services.ts","webpack:///../common/ts/core/utils/EventDispatcher.ts","webpack:///../common/ts/core/utils/WeakRefPolyfill.ts","webpack:///../common/ts/core/utils/MessageList.ts","webpack:///../common/ts/core/utils/Modal.ts","webpack:///../common/ts/core/utils/SimplePromise.ts","webpack:///../common/ts/core/utils/metadata.ts","webpack:///../common/ts/core/utils/utils.ts","webpack:///../common/ts/core/utils/uuid.ts","webpack:///../common/ts/core/services/InjectedService.ts","webpack:///../common/ts/core/services/Company.ts","webpack:///../common/ts/core/services/SocketEventHandler.ts","webpack:///../common/ts/core/services/ModelSyncService.ts","webpack:///../common/ts/core/services/CookieManager.ts","webpack:///../common/ts/core/services/Http.ts","webpack:///../common/ts/core/services/RouteService.ts","webpack:///../common/ts/core/services/NamedRouteService.ts","webpack:///../common/ts/core/services/trackers/GTag.ts","webpack:///../common/ts/core/services/trackers/Vibe.ts","webpack:///../common/ts/core/services/Analytics.ts","webpack:///../common/ts/core/services/Debug.ts","webpack:///../common/ts/core/services/HttpUpload.ts","webpack:///../common/ts/core/services/BasicStorageManager.ts","webpack:///../common/ts/core/services/LocalStorage.ts","webpack:///../common/ts/apps/chat/services/BaseChatService.ts","webpack:///../common/ts/apps/chat/services/ChatService.ts","webpack:///../common/ts/apps/userprofile/services/UserProfileService.ts","webpack:///../common/ts/apps/userprofile/services/UserAddressService.ts","webpack:///../common/ts/apps/userprofile/services/UserProductService.ts","webpack:///../common/ts/apps/userprofile/models/UserInStoreCreditTransaction.ts","webpack:///../common/ts/apps/userprofile/models/WholesaleAccount.ts","webpack:///../common/ts/apps/userprofile/models/WholesaleApplication.ts","webpack:///../common/ts/apps/userprofile/models/WholesaleMemebership.ts","webpack:///../common/ts/apps/userprofile/models/ShippingAccount.ts","webpack:///../common/ts/apps/chat/models/ChatItemAbstract.ts","webpack:///../common/ts/apps/chat/models/ChatLine.ts","webpack:///../common/ts/apps/chat/models/ChatEvent.ts","webpack:///../common/ts/apps/chat/models/ChatRoom.ts","webpack:///../common/ts/apps/chat/models/ChatFile.ts","webpack:///../common/ts/apps/chat/components/Chat/Chat.html.ts","webpack:///../common/ts/apps/chat/components/Chat/Chat.ts","webpack:///../common/ts/apps/chat/components/ChatBubble/ChatBubble.ts","webpack:///../common/ts/apps/chat/components/ChatBubble/ChatBubble.html.ts","webpack:///../common/ts/apps/chat/components/ChatHeader/ChatHeader.html.ts","webpack:///../common/ts/apps/chat/components/ChatHeader/ChatHeader.ts","webpack:///../common/ts/apps/chat/components/ChatInputArea/ChatInputArea.html.ts","webpack:///../common/ts/apps/chat/components/ChatInputArea/ChatInputArea.ts","webpack:///../common/ts/core/utils/CarouselController.ts","webpack:///../common/ts/core/apps/CarouselSlider/CarouselSlider.ts","webpack:///../common/ts/apps/marketing/components/RotatingBanner/RotatingBanner.ts","webpack:///../common/ts/core/apps/BackendAlerts/BackendAlertApp.ts","webpack:///../common/ts/core/utils/bindings/ModalAttrBinding.ts","webpack:///../common/ts/core/utils/bindings/ScrollToBinding.ts","webpack:///../common/ts/core/utils/bindings/DropdownBinding.ts","webpack:///../common/ts/core/utils/bindings/TooltipBinding.ts","webpack:///../common/ts/core/utils/bindings/PasswordToggleBinding.ts","webpack:///../common/ts/core/utils/bindings/ElementInViewBinding.ts","webpack:///../common/ts/core/utils/bindings/ToggleChatBinding.ts","webpack:///../common/ts/core/utils/bindings/ClickRotate.ts","webpack:///../common/ts/core/utils/Integration.ts","webpack:///../common/ts/core/apps/Dropdown/DropdownApp.ts","webpack:///../common/ts/core/formatters/utils.ts","webpack:///../common/ts/core/formatters/APIResponseFormatter.ts","webpack:///../common/ts/core/formatters/ModelFormatter.ts","webpack:///../common/ts/apps/search/apps/PageSearch.ts","webpack:///../common/ts/core/services/StorefrontRouteList.ts","webpack:///../common/ts/apps/marketing/apps/SubscribeApp.ts","webpack:///../common/ts/apps/products_shared/apps/ProductTabGroup.ts","webpack:///../common/integrations/ts/Core.ts","webpack:///../common/ts/core/utils/DelayedSrcObserver.ts","webpack:///../common/ts/apps/userprofile/models/init.ts","webpack:///../common/ts/apps/chat/models/init.ts","webpack:///../common/ts/core/services/init.ts","webpack:///../common/ts/apps/chat/services/init.ts","webpack:///../common/ts/apps/userprofile/services/init.ts","webpack:///../common/ts/apps/chat/components/init.ts","webpack:///../common/ts/core/utils/AnchorPolyfill.ts","webpack:///./integrations/ts/Core.ts"],"sourcesContent":["export enum LoginState {\n    LOGIN,\n    REGISTER,\n    EMAIL_LOGIN,\n    RESET_PASSWORD,\n    PASSKEY,\n    PASSKEY_REGISTER\n}\n\nexport const html:string = `\n<div class=\"account-login flex-center stretch column spacing-3xl\">\n    <a href=\"/\">\n        <picture class=\"flex-center\">\n            <source media=\"screen and (prefers-color-scheme: dark)\" :srcset=\"$filters.static('img/logo-full-dark.svg')\" v-if=\"$filters.showDarkModeOption()\">\n            <img :src=\"$filters.static('img/logo-full.svg')\" loading=\"lazy\" alt=\"Logo\">\n        </picture>\n    </a>\n    <div class=\"flex-center column stretch\" v-if=\"state == ${LoginState.LOGIN}\">\n        <div class=\"flex-center column spacing-xs\">\n            <h1 class=\"align-center\">Sign In</h1>\n            <span class=\"flex-full-center text-sm spacing-xs align-center\">Need an account? <button @click=\"swapToLogin(); resetMessages()\" class=\"btn-link\">Create one</button></span>\n        </div>\n        <form class=\"flex-center column stretch\" @submit.prevent=\"login\">\n            <div class=\"input-group\">\n                <label for=\"email\">Email</label>\n                <message-list :errors=\"errors\" :successes=\"successes\" field=\"username,email,__all__\">\n                    <input type=\"email\" \n                            id=\"username\" \n                            name=\"username\" \n                            v-model=\"username_email\" \n                            autocomplete=\"username email\"  \n                            placeholder=\"Enter your email\" \n                            :disabled=\"processing\" required>\n                </message-list>\n            </div>\n            <div class=\"input-group\">\n                <label for=\"password\">Password</label>\n                <message-list :errors=\"errors\" :successes=\"successes\" field=\"password\">\n                    <div class=\"password-input\" v-password-toggle>\n                        <input  type=\"password\" \n                                id=\"password\" \n                                name=\"password\" \n                                v-model=\"password\" \n                                autocomplete=\"current-password\" \n                                placeholder=\"Enter a password\" \n                                :disabled=\"processing\" required>\n                                \n                        <i class=\"password-toggle\" aria-hidden=\"true\"></i>\n                    </div>\n                </message-list>\n                <div class=\"flex-right full-width text-sm\">\n                    <button type=\"button\" class=\"btn-link\" @click=\"state = ${LoginState.RESET_PASSWORD}; resetMessages()\">Forgot Password</button>\n                </div>\n            </div>\n            <div class=\"flex-center column stretch\">\n                <button class=\"btn-base btn-primary-action\" :disabled=\"processing\">Sign In</button>\n            </div>\n        </form>\n        \n        <div class=\"flex-center column stretch\">\n            <div class=\"flex-full-center no-wrap\">\n                <hr>\n                <span class=\"no-text-wrap\">or sign in with</span>\n                <hr>\n            </div>\n            <div class=\"flex-left no-wrap space-between wrap-xs\">\n                <button class=\"btn-base btn-secondary-action spacing-sm other-login-buttons xs-12 sm-3 full-width\" @click=\"state = ${LoginState.PASSKEY}; setLoginDefault()\" v-if=\"passkey_supported\">\n                    <svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n                        <path d=\"M7.10102 10H7V8C7 5.23858 9.23858 3 12 3C14.7614 3 17 5.23858 17 8V10H16.899M12 14V16M19 15C19 18.866 15.866 22 12 22C8.13401 22 5 18.866 5 15C5 11.134 8.13401 8 12 8C15.866 8 19 11.134 19 15Z\" stroke=\"black\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n                    </svg>\n                    Passkey\n                </button>\n                <a class=\"btn-base btn-secondary-action spacing-sm other-login-buttons xs-12 sm-3 full-width\" :href=\"loginUrl('/account/google/login/')\" v-if=\"googleEnabled()\">\n                    <img width=\"24px\" height=\"24px\" :src=\"$filters.static('img/icons/google.svg')\" alt=\"Login With Google\" loading=\"lazy\"/>\n                    Google\n                </a>\n                <a class=\"btn-base btn-secondary-action spacing-sm other-login-buttons xs-12 sm-3 full-width\" :href=\"loginUrl('/account/apple/login/')\" v-if=\"appleEnabled()\">\n                    <img class=\"dark-invert\" width=\"24px\" height=\"24px\" :src=\"$filters.static('img/icons/apple.svg')\" alt=\"Login With Google\" loading=\"lazy\"/>\n                    Apple\n                </a>\n                <button class=\"btn-base btn-secondary-action spacing-sm other-login-buttons xs-12 sm-3 full-width\" @click=\"state = ${LoginState.EMAIL_LOGIN}; resetMessages()\">\n                    <img width=\"24px\" height=\"24px\" :src=\"$filters.static('img/icons/email.svg')\" alt=\"Login With Email\" loading=\"lazy\"/>\n                    Email\n                </button>\n            </div>\n        </div>\n    </div>\n    \n    <div class=\"flex-center column stretch\" v-if=\"state == ${LoginState.PASSKEY}\">\n        <div class=\"flex-center column spacing-xs\">\n            <h1 class=\"align-center\">Sign In</h1>\n            <span class=\"flex-full-center text-sm spacing-xs align-center\">Need an account? <button @click=\"swapToLogin(); resetMessages()\" class=\"btn-link\">Create one</button></span>\n        </div>\n        <form class=\"flex-center column stretch\" @submit.prevent=\"passkeyLogin\">\n            <div class=\"input-group\">\n                <label for=\"email\">Email</label>\n                <message-list :errors=\"errors\" :successes=\"successes\" field=\"username,email,__all__\">\n                    <input type=\"email\" \n                            id=\"username\" \n                            name=\"username\" \n                            v-model=\"username_email\" \n                            autocomplete=\"username email webauthn\"  \n                            placeholder=\"Enter your email\" \n                            :disabled=\"processing\" required>\n                </message-list>\n            </div>\n            <div class=\"flex-center column stretch\">\n                <button class=\"btn-base btn-primary-action\" :disabled=\"processing\">Passkey Sign In</button>\n            </div>\n        </form>\n        \n        <div class=\"flex-center column stretch\">\n            <div class=\"flex-full-center no-wrap\">\n                <hr>\n                <span class=\"no-text-wrap\">or sign in with</span>\n                <hr>\n            </div>\n            <div class=\"flex-left no-wrap space-between wrap-xs\">\n                <button class=\"btn-base btn-secondary-action spacing-sm other-login-buttons xs-12 sm-3 full-width\" @click=\"state = ${LoginState.LOGIN}; setLoginDefault()\">\n                    <svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n                        <path d=\"M12 12H12.005M17 12H17.005M7 12H7.005M5.2 7H18.8C19.9201 7 20.4802 7 20.908 7.21799C21.2843 7.40973 21.5903 7.71569 21.782 8.09202C22 8.51984 22 9.0799 22 10.2V13.8C22 14.9201 22 15.4802 21.782 15.908C21.5903 16.2843 21.2843 16.5903 20.908 16.782C20.4802 17 19.9201 17 18.8 17H5.2C4.0799 17 3.51984 17 3.09202 16.782C2.71569 16.5903 2.40973 16.2843 2.21799 15.908C2 15.4802 2 14.9201 2 13.8V10.2C2 9.0799 2 8.51984 2.21799 8.09202C2.40973 7.71569 2.71569 7.40973 3.09202 7.21799C3.51984 7 4.0799 7 5.2 7ZM12.25 12C12.25 12.1381 12.1381 12.25 12 12.25C11.8619 12.25 11.75 12.1381 11.75 12C11.75 11.8619 11.8619 11.75 12 11.75C12.1381 11.75 12.25 11.8619 12.25 12ZM17.25 12C17.25 12.1381 17.1381 12.25 17 12.25C16.8619 12.25 16.75 12.1381 16.75 12C16.75 11.8619 16.8619 11.75 17 11.75C17.1381 11.75 17.25 11.8619 17.25 12ZM7.25 12C7.25 12.1381 7.13807 12.25 7 12.25C6.86193 12.25 6.75 12.1381 6.75 12C6.75 11.8619 6.86193 11.75 7 11.75C7.13807 11.75 7.25 11.8619 7.25 12Z\" stroke=\"black\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n                    </svg>\n                    Password\n                </button>\n                <a class=\"btn-base btn-secondary-action spacing-sm other-login-buttons xs-12 sm-3 full-width\" :href=\"loginUrl('/account/google/login/')\" v-if=\"googleEnabled()\">\n                    <img width=\"24px\" height=\"24px\" :src=\"$filters.static('img/icons/google.svg')\" alt=\"Login With Google\" loading=\"lazy\"/>\n                    Google\n                </a>\n                <a class=\"btn-base btn-secondary-action spacing-sm other-login-buttons xs-12 sm-3 full-width\" :href=\"loginUrl('/account/apple/login/')\" v-if=\"appleEnabled()\">\n                    <img class=\"dark-invert\" width=\"24px\" height=\"24px\" :src=\"$filters.static('img/icons/apple.svg')\" alt=\"Login With Apple\" loading=\"lazy\"/>\n                    Apple\n                </a>\n                <button class=\"btn-base btn-secondary-action spacing-sm other-login-buttons xs-12 sm-3 full-width\" @click=\"state = ${LoginState.EMAIL_LOGIN}; resetMessages()\">\n                    <img width=\"24px\" height=\"24px\" :src=\"$filters.static('img/icons/email.svg')\" alt=\"Login With Email\" loading=\"lazy\"/>\n                    Email\n                </button>\n            </div>\n        </div>\n    </div>\n    \n    <div class=\"flex-center column stretch\" v-if=\"state == ${LoginState.REGISTER}\">\n        <div class=\"flex-center column spacing-xs\">\n            <h1>Create an Account</h1>\n            <span class=\"flex-full-center text-sm spacing-xs\">Already have an account? <button @click=\"state = ${LoginState.LOGIN}; resetMessages()\" class=\"btn-link\">Sign In</button></span>\n        </div>\n        <form class=\"flex-center column stretch\" @submit.prevent=\"register\">\n            <div class=\"input-group\">\n                <label for=\"email\">Email</label>\n                <message-list :errors=\"errors\" :successes=\"successes\" field=\"username,email,__all__\">\n                    <input  type=\"email\" \n                            id=\"username\" \n                            name=\"username\" \n                            v-model=\"username_email\" \n                            autocomplete=\"username email\"  \n                            placeholder=\"Enter your email\" \n                            :disabled=\"processing\" required>\n                </message-list>\n            </div>\n            <div class=\"input-group\">\n                <label for=\"password\">Password</label>\n                <message-list :errors=\"errors\" :successes=\"successes\" field=\"password\">\n                    <div class=\"password-input\" v-password-toggle>\n                        <input  type=\"password\" \n                                id=\"password\" \n                                name=\"password\" \n                                v-model=\"password\" \n                                autocomplete=\"current-password\" \n                                placeholder=\"Enter a password\" \n                                :disabled=\"processing\" required>\n                        <i class=\"password-toggle\" aria-hidden=\"true\"></i>\n                    </div>\n                </message-list>\n            </div>\n            <div class=\"flex-center column stretch\">\n                <button class=\"btn-base btn-primary-action\" type=\"submit\" :disabled=\"processing\">Sign Up</button>\n            </div>\n        </form>\n        \n        <div class=\"flex-center column stretch\">\n            <div class=\"flex-full-center no-wrap\">\n                <hr>\n                OR\n                <hr>\n            </div>\n            <div class=\"flex-left no-wrap space-between wrap-xs\">\n                <button class=\"btn-base btn-secondary-action spacing-sm other-login-buttons xs-12 sm-3 full-width\" @click=\"state = ${LoginState.PASSKEY_REGISTER}; setLoginDefault()\" v-if=\"passkey_supported\">\n                    <svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n                        <path d=\"M7.10102 10H7V8C7 5.23858 9.23858 3 12 3C14.7614 3 17 5.23858 17 8V10H16.899M12 14V16M19 15C19 18.866 15.866 22 12 22C8.13401 22 5 18.866 5 15C5 11.134 8.13401 8 12 8C15.866 8 19 11.134 19 15Z\" stroke=\"black\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n                    </svg>\n                    Passkey\n                </button>\n                <a class=\"btn-base btn-secondary-action spacing-sm other-login-buttons xs-12 sm-3 full-width\" :href=\"loginUrl('/account/google/login/')\" v-if=\"googleEnabled()\">\n                    <img width=\"24px\" height=\"24px\" :src=\"$filters.static('img/icons/google.svg')\" alt=\"Login With Google\" loading=\"lazy\"/>\n                    Google\n                </a>\n                <a class=\"btn-base btn-secondary-action spacing-sm other-login-buttons xs-12 sm-3 full-width\" :href=\"loginUrl('/account/apple/login/')\" v-if=\"appleEnabled()\">\n                    <img class=\"dark-invert\" width=\"24px\" height=\"24px\" :src=\"$filters.static('img/icons/apple.svg')\" alt=\"Login With Apple\" loading=\"lazy\"/>\n                    Apple\n                </a>\n            </div>\n        </div>\n    </div>\n    \n    <div class=\"flex-center column stretch\" v-if=\"state == ${LoginState.PASSKEY_REGISTER}\">\n        <div class=\"flex-center column spacing-xs\">\n            <h1>Create an Account</h1>\n            <span class=\"flex-full-center text-sm spacing-xs\">Already have an account? <button @click=\"state = ${LoginState.LOGIN}; resetMessages()\" class=\"btn-link\">Sign In</button></span>\n        </div>\n        <form class=\"flex-center column stretch\" @submit.prevent=\"passkeyRegister()\">\n            <div class=\"input-group\">\n                <label for=\"email\">Email</label>\n                <message-list :errors=\"errors\" :successes=\"successes\" field=\"username,email,__all__\">\n                    <input  type=\"email\" \n                            id=\"username\" \n                            name=\"username\" \n                            v-model=\"username_email\" \n                            autocomplete=\"username email\"  \n                            placeholder=\"Enter your email\" \n                            :disabled=\"processing\" required>\n                </message-list>\n            </div>\n            <div class=\"flex-center column stretch\">\n                <button class=\"btn-base btn-primary-action\" type=\"submit\" :disabled=\"processing\">Sign Up With Passkey</button>\n            </div>\n        </form>\n        \n        <div class=\"flex-center column stretch\">\n            <div class=\"flex-full-center no-wrap\">\n                <hr>\n                <span class=\"no-text-wrap\">or sign up with</span>\n                <hr>\n            </div>\n            <div class=\"flex-left no-wrap space-between wrap-xs\">\n                <button class=\"btn-base btn-secondary-action spacing-sm other-login-buttons xs-12 sm-3 full-width\" @click=\"state = ${LoginState.REGISTER}; setLoginDefault()\" v-if=\"passkey_supported\">\n                    <svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n                        <path d=\"M12 12H12.005M17 12H17.005M7 12H7.005M5.2 7H18.8C19.9201 7 20.4802 7 20.908 7.21799C21.2843 7.40973 21.5903 7.71569 21.782 8.09202C22 8.51984 22 9.0799 22 10.2V13.8C22 14.9201 22 15.4802 21.782 15.908C21.5903 16.2843 21.2843 16.5903 20.908 16.782C20.4802 17 19.9201 17 18.8 17H5.2C4.0799 17 3.51984 17 3.09202 16.782C2.71569 16.5903 2.40973 16.2843 2.21799 15.908C2 15.4802 2 14.9201 2 13.8V10.2C2 9.0799 2 8.51984 2.21799 8.09202C2.40973 7.71569 2.71569 7.40973 3.09202 7.21799C3.51984 7 4.0799 7 5.2 7ZM12.25 12C12.25 12.1381 12.1381 12.25 12 12.25C11.8619 12.25 11.75 12.1381 11.75 12C11.75 11.8619 11.8619 11.75 12 11.75C12.1381 11.75 12.25 11.8619 12.25 12ZM17.25 12C17.25 12.1381 17.1381 12.25 17 12.25C16.8619 12.25 16.75 12.1381 16.75 12C16.75 11.8619 16.8619 11.75 17 11.75C17.1381 11.75 17.25 11.8619 17.25 12ZM7.25 12C7.25 12.1381 7.13807 12.25 7 12.25C6.86193 12.25 6.75 12.1381 6.75 12C6.75 11.8619 6.86193 11.75 7 11.75C7.13807 11.75 7.25 11.8619 7.25 12Z\" stroke=\"black\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n                    </svg>\n                    Password\n                </button>\n                <a class=\"btn-base btn-secondary-action spacing-sm other-login-buttons xs-12 sm-3 full-width\" :href=\"loginUrl('/account/google/login/')\" v-if=\"googleEnabled()\">\n                    <img width=\"24px\" height=\"24px\" :src=\"$filters.static('img/icons/google.svg')\" alt=\"Login With Google\" loading=\"lazy\"/>\n                    Google\n                </a>\n                <a class=\"btn-base btn-secondary-action spacing-sm other-login-buttons xs-12 sm-3 full-width\" :href=\"loginUrl('/account/apple/login/')\" v-if=\"appleEnabled()\">\n                    <img class=\"dark-invert\" width=\"24px\" height=\"24px\" :src=\"$filters.static('img/icons/apple.svg')\" alt=\"Login With Apple\" loading=\"lazy\"/>\n                    Apple\n                </a>\n            </div>\n        </div>\n    </div>\n    \n    \n    <div class=\"flex-center column stretch\" v-if=\"state == ${LoginState.RESET_PASSWORD}\">\n        <div class=\"flex-center column spacing-xs\">\n            <h1>Reset password</h1>\n            <span class=\"text-sm\">Send an email link to reset your password.</span>\n        </div>\n        <form class=\"flex-center column stretch\" @submit.prevent=\"resetPassword\">\n            <div class=\"input-group\">\n                <label for=\"email\">Email</label>\n                <message-list :errors=\"errors\" :successes=\"successes\" field=\"username,email,__all__\">\n                    <input  type=\"email\" \n                            id=\"username\" \n                            name=\"username\" \n                            v-model=\"username_email\" \n                            autocomplete=\"username email\" \n                            placeholder=\"Enter your email\" \n                            :disabled=\"processing\" required>\n                </message-list>\n            </div>\n            <div class=\"flex-center column stretch\">\n                <button class=\"btn-base btn-primary-action\" type=\"submit\" :disabled=\"processing\">Reset Password</button>\n            </div>\n        </form>\n        <div class=\"flex-center column stretch\">\n            <div class=\"flex-full-center no-wrap\">\n                <hr>\n                <span class=\"no-text-wrap\">or sign in with</span>\n                <hr>\n            </div>\n            <div class=\"flex-left no-wrap space-between wrap-xs\">\n                <button class=\"btn-base btn-secondary-action spacing-sm other-login-buttons xs-12 sm-3 full-width\" @click=\"state = ${LoginState.PASSKEY}; setLoginDefault()\" v-if=\"passkey_supported\">\n                    <svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n                        <path d=\"M7.10102 10H7V8C7 5.23858 9.23858 3 12 3C14.7614 3 17 5.23858 17 8V10H16.899M12 14V16M19 15C19 18.866 15.866 22 12 22C8.13401 22 5 18.866 5 15C5 11.134 8.13401 8 12 8C15.866 8 19 11.134 19 15Z\" stroke=\"black\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n                    </svg>\n                    Passkey\n                </button>\n                <a class=\"btn-base btn-secondary-action spacing-sm other-login-buttons xs-12 sm-3 full-width\" :href=\"loginUrl('/account/google/login/')\" v-if=\"googleEnabled()\">\n                    <img width=\"24px\" height=\"24px\" :src=\"$filters.static('img/icons/google.svg')\" alt=\"Login With Google\" loading=\"lazy\"/>\n                    Google\n                </a>\n                <a class=\"btn-base btn-secondary-action spacing-sm other-login-buttons xs-12 sm-3 full-width\" :href=\"loginUrl('/account/apple/login/')\" v-if=\"appleEnabled()\">\n                    <img width=\"24px\" height=\"24px\" :src=\"$filters.static('img/icons/apple.svg')\" alt=\"Login With Google\" loading=\"lazy\"/>\n                    Apple\n                </a>\n            </div>\n        </div>\n        <span class=\"flex-full-center text-sm spacing-xs align-center\">Remember your password? <button @click=\"state = ${LoginState.LOGIN}; resetMessages()\" class=\"btn-link\">Log in</button></span>\n    </div>\n    <div class=\"flex-center column stretch\" v-if=\"state == ${LoginState.EMAIL_LOGIN}\">\n        <div class=\"flex-center column spacing-xs\">\n            <h1 class=\"align-center\">Login with email</h1>\n            <span class=\"text-sm\">Login using your email.</span>\n        </div>\n        <form class=\"flex-center column stretch\" @submit.prevent=\"emailLogin\">\n            <div class=\"input-group\">\n                <label for=\"email\">Email</label>\n                <message-list :errors=\"errors\" :successes=\"successes\" field=\"username,email,__all__\">\n                    <input  type=\"email\" \n                            id=\"username\" \n                            name=\"username\" \n                            v-model=\"username_email\" \n                            autocomplete=\"username email\"  \n                            placeholder=\"Enter your email\" \n                            :disabled=\"processing\" required>\n                </message-list>\n            </div>\n            <div class=\"flex-center column stretch\">\n                <button class=\"btn-base btn-primary-action\" type=\"submit\" :disabled=\"processing\">Send Login Email</button>\n            </div>\n        </form>\n        <div class=\"flex-center column stretch\">\n            <div class=\"flex-full-center no-wrap\">\n                <hr>\n                <span class=\"no-text-wrap\">or sign in with</span>\n                <hr>\n            </div>\n            <div class=\"flex-left no-wrap space-between wrap-xs\">\n                <button class=\"btn-base btn-secondary-action spacing-sm other-login-buttons xs-12 sm-3 full-width\" @click=\"state = ${LoginState.PASSKEY}; setLoginDefault()\" v-if=\"passkey_supported\">\n                    <svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n                        <path d=\"M7.10102 10H7V8C7 5.23858 9.23858 3 12 3C14.7614 3 17 5.23858 17 8V10H16.899M12 14V16M19 15C19 18.866 15.866 22 12 22C8.13401 22 5 18.866 5 15C5 11.134 8.13401 8 12 8C15.866 8 19 11.134 19 15Z\" stroke=\"black\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n                    </svg>\n                    Passkey\n                </button>\n                <a class=\"btn-base btn-secondary-action spacing-sm other-login-buttons xs-12 sm-3 full-width\" :href=\"loginUrl('/account/google/login/')\" v-if=\"googleEnabled()\">\n                    <img width=\"24px\" height=\"24px\" :src=\"$filters.static('img/icons/google.svg')\" alt=\"Login With Google\" loading=\"lazy\"/>\n                    Google\n                </a>\n                <a class=\"btn-base btn-secondary-action spacing-sm other-login-buttons xs-12 sm-3 full-width\" :href=\"loginUrl('/account/apple/login/')\" v-if=\"appleEnabled()\">\n                    <img width=\"24px\" height=\"24px\" :src=\"$filters.static('img/icons/apple.svg')\" alt=\"Login With Google\" loading=\"lazy\"/>\n                    Apple\n                </a>\n            </div>\n        </div>\n        <span class=\"flex-center text-sm spacing-xs\">Have a password? <button @click=\"state = ${LoginState.LOGIN}; resetMessages()\" class=\"btn-link\">Log in</button></span>\n    </div>\n</div>\n`;","import VueComponent, {data, method, prop} from '../../../../core/adapters/VueComponent';\nimport MessageList from '../../../../core/utils/MessageList';\nimport IVueComponent from '../../../../core/adapters/IVueComponent';\n\nimport {html, LoginState} from './AccountLogin.html';\nimport {closeModal} from '../../../../core/utils/Modal';\nimport UserProfileService from '../../../userprofile/services/UserProfileService';\nimport {Services} from '../../../../core/services/Services';\nimport {passkeySupported, processRequestError, websafe_decode} from '../../../../core/utils/utils';\nimport {Http} from '../../../../core/services/Http';\nimport CookieManager from \"../../../../core/services/CookieManager\";\n\nclass AccountLoginController extends VueComponent {\n\n    @data()\n    errors: MessageList = new MessageList();\n\n    @data()\n    successes: MessageList = new MessageList();\n\n    @data()\n    processing: boolean;\n\n    @data()\n    response: any = {};\n\n    @data()\n    state: LoginState = LoginState.LOGIN;\n\n    @data()\n    username_email: string;\n\n    @data()\n    password: string;\n\n    @prop()\n    modal: boolean;\n\n    @prop()\n    defaultRegister: boolean;\n\n    @data()\n    passkey_supported: boolean = true; // Support at 94% as of 3/2026 so lets set to true by default\n\n    constructor(component) {\n        super(component);\n\n        this.resetStates();\n\n        Services.get<UserProfileService>('UserProfileService').bind('reset-login-modal', () => {\n            this.resetStates();\n        }, this);\n        Services.get<UserProfileService>('UserProfileService').bind('set-register-state', () => {\n            this.state = LoginState.PASSKEY_REGISTER;\n            this.$forceUpdate();\n        }, this);\n\n        passkeySupported().then(supported => {\n            this.passkey_supported = supported;\n\n            if (!supported && this.state == LoginState.PASSKEY) {\n                this.state = LoginState.LOGIN;\n            }\n        })\n    }\n\n    override mounted() {\n        super.mounted();\n        if (this.defaultRegister) {\n            this.state = LoginState.PASSKEY_REGISTER;\n        }\n    }\n\n    override unmounted() {\n        Services.get<UserProfileService>('UserProfileService').unbind('reset-login-modal');\n        Services.get<UserProfileService>('UserProfileService').unbind('set-register-state');\n        super.unmounted();\n    }\n\n    @method()\n    resetMessages() {\n        this.errors = new MessageList();\n        this.successes = new MessageList();\n    }\n\n    @method()\n    public resetStates() {\n        if (this.defaultRegister) {\n            this.state = LoginState.PASSKEY_REGISTER;\n        }\n        else {\n            this.loadLoginDefault();\n        }\n\n        Services.get<UserProfileService>('UserProfileService').login_redirect = null;\n        this.resetMessages();\n    }\n\n    @method()\n    facebookEnabled(): boolean {\n        return !!window['facebook_oauth_enabled'];\n    }\n\n    @method()\n    googleEnabled(): boolean {\n        return !!window['google_oauth_enabled'];\n    }\n\n    @method()\n    appleEnabled() {\n        return !!window['apple_oauth_enabled'];\n    }\n\n    @method()\n    loginUrl(path) {\n        let search_params = new URLSearchParams();\n        search_params.set('return_url', window.location.pathname + window.location.search);\n        return path + '?' + search_params.toString();\n    }\n\n    @method()\n    public login($event?) {\n        this.resetMessages();\n\n        const form = new FormData()\n        form.append('username', this.username_email);\n        form.append('password', this.password);\n\n        this.processing = true;\n        Services.get<Http>('$http').request({\n            data: form,\n            url: '/account/api/login/',\n            method: 'POST'\n        }).then((response) => {\n            this.processing = false;\n            this.handleRedirect();\n        }, (error) => {\n            this.processing = false;\n            this.handleResponseError(error);\n        });\n    }\n\n    @method()\n    public register($event?) {\n        this.resetMessages();\n\n        const form = new FormData()\n        form.append('email', this.username_email);\n        form.append('password', this.password);\n\n        this.processing = true;\n        Services.get<Http>('$http').request({\n            data: form,\n            url: '/account/api/register/',\n            method: 'POST'\n        }).then((response) => {\n            this.processing = false;\n            if (response.data.authenticated) {\n                this.handleRedirect();\n            }\n            else {\n                if (response.data.message) {\n                    this.successes.add('email', response.data.message);\n                }\n            }\n        }, (error) => {\n            this.processing = false;\n            this.handleResponseError(error);\n        });\n    }\n\n    @method()\n    public resetPassword($event?) {\n        this.resetMessages();\n\n        const form = new FormData()\n        form.append('email', this.username_email);\n\n        this.processing = true;\n        Services.get<Http>('$http').request({\n            data: form,\n            url: '/account/api/reset-password/',\n            method: 'POST'\n        }).then((response) => {\n            this.processing = false;\n            if (response.data.message) {\n                this.successes.add('email', response.data.message);\n            }\n        }, (error) => {\n            this.processing = false;\n            this.handleResponseError(error);\n        });\n    }\n\n\n    @method()\n    public emailLogin() {\n        this.resetMessages();\n\n        const form = new FormData()\n        form.append('email', this.username_email);\n\n        this.processing = true;\n        Services.get<Http>('$http').request({\n            data: form,\n            url: '/account/api/request-login-email/',\n            method: 'POST'\n        }).then((response) => {\n            this.processing = false;\n            if (response.data.message) {\n                this.successes.add('email', response.data.message);\n            }\n        }, (error) => {\n            this.processing = false;\n            this.handleResponseError(error);\n        });\n    }\n\n    @method()\n    close() {\n        this.resetMessages();\n        if (document.getElementById('loginModal')) {\n            closeModal('loginModal');\n        }\n    }\n\n    handleRedirect() {\n        const next = new URL(window.location.href).searchParams.get('next') || Services.get<UserProfileService>('UserProfileService').login_redirect;\n\n        if (!next && window.location.pathname.indexOf('/account/login/') != -1) {\n            //Redirect to home if the user somehow ended up at /account/login/ without a redirect link\n            window.location.pathname = '/';\n        }\n\n        if (next) {\n            let url = new URL(window.location.origin + next);\n            window.location.assign(url);\n        }\n        else if (window.location.pathname.includes('/account/login/')) {\n            window.location.pathname = '/';\n        }\n        else if (window.location.pathname.includes('/checkout/account/')) {\n            window.location.pathname = '/checkout/';\n        }\n        else {\n            window.location.reload();\n        }\n    }\n\n    handleResponseError(error) {\n        if (error.response.status === 429) {\n            this.errors.add('__all__', 'Too many attempts, please try again later.')\n        }\n        else {\n            this.errors = processRequestError(error);\n        }\n        this.$forceUpdate();\n        this.trigger('sync');\n    }\n\n    @method()\n    passkeyRegister() {\n        this.errors = new MessageList();\n        this.processing = true;\n        Services.get<Http>('$http').request({\n            url: '/passkey/register/begin/',\n            method: 'GET',\n            params: {\n                username: this.username_email\n            }\n        }).then((response) => {\n            let data = response.data;\n\n            // Why is this needed... Uint8Array.fromBase64 wasn't even added until 2025...\n            if (data.publicKey.challenge) {\n                data.publicKey.challenge = websafe_decode(data.publicKey.challenge);\n            }\n            if (data.publicKey.user) {\n                data.publicKey.user.id   = websafe_decode(data.publicKey.user.id);\n            }\n            if (data.publicKey.allowCredentials) {\n                for (let cred of data.publicKey.allowCredentials) {\n                    cred.id = websafe_decode(cred.id);\n                }\n            }\n\n            window.navigator.credentials.create(response.data).then((data) => {\n                Services.get<Http>('$http').request({\n                    url: '/passkey/register/complete/',\n                    method: 'POST',\n                    data: data\n                }).then(() => {\n                    this.processing = false;\n                    Services.get<typeof CookieManager>('$cookies').set('login-type', LoginState.PASSKEY);\n                    this.handleRedirect();\n                }, (error) => {\n                    this.processing = false;\n                    this.errors.add('username', 'Passkey authorization failed.')\n                });\n            }, () => {\n                this.processing = false;\n                this.errors.add('username', 'Failed to create passkey');\n            });\n        }, (error) => {\n            this.processing = false;\n            this.errors = processRequestError(error);\n        });\n    }\n\n    @method()\n    passkeyLogin() {\n        this.errors = new MessageList();\n        this.processing = true;\n        Services.get<Http>('$http').request({\n            url: '/passkey/auth/begin/',\n            method: 'GET',\n            params: {\n                username: this.username_email\n            }\n        }).then((response) => {\n            let data = response.data;\n\n            // Why is this needed... Uint8Array.fromBase64 wasn't even added until 2025...\n            if (data.publicKey.challenge) {\n                data.publicKey.challenge = websafe_decode(data.publicKey.challenge);\n            }\n            if (data.publicKey.user) {\n                data.publicKey.user.id   = websafe_decode(data.publicKey.user.id);\n            }\n            if (data.publicKey.allowCredentials) {\n                for (let cred of data.publicKey.allowCredentials) {\n                    cred.id = websafe_decode(cred.id);\n                }\n            }\n\n            window.navigator.credentials.get(response.data).then((data) => {\n                Services.get<Http>('$http').request({\n                    url: '/passkey/auth/complete/',\n                    method: 'POST',\n                    data: data\n                }).then(() => {\n                    this.processing = false;\n                    Services.get<typeof CookieManager>('$cookies').set('login-type', LoginState.PASSKEY);\n                    this.handleRedirect();\n                }, (error) => {\n                    this.processing = false;\n                    this.errors = processRequestError(error);\n                });\n            }, (error) => {\n                this.processing = false;\n                this.errors.add('username', 'Passkey authorization failed.')\n            });\n        },\n        (error) => {\n            this.processing = false;\n            this.errors = processRequestError(error);\n        })\n    }\n\n    @method()\n    setLoginDefault() {\n        if (this.state == LoginState.PASSKEY_REGISTER || this.state == LoginState.PASSKEY) {\n            Services.get<typeof CookieManager>('$cookies').set('login-type', LoginState.PASSKEY);\n        }\n        else {\n            Services.get<typeof CookieManager>('$cookies').set('login-type', LoginState.LOGIN);\n        }\n    }\n\n    loadLoginDefault() {\n        let default_value = Services.get<typeof CookieManager>('$cookies').get('login-type');\n        if (default_value == LoginState.LOGIN || default_value == LoginState.PASSKEY) {\n            this.state = default_value;\n        }\n        else {\n            this.state = LoginState.LOGIN;\n        }\n    }\n\n    @method()\n    swapToLogin() {\n        if (this.passkey_supported) {\n            this.state = LoginState.PASSKEY_REGISTER;\n        }\n        else {\n            this.state = LoginState.REGISTER;\n        }\n    }\n}\n\nexport default function AccountLogin(): IVueComponent {\n\n    return {\n        controller: AccountLoginController,\n        template: html,\n        tag: 'account-login'\n    };\n}","import {html} from './AccountLoginModal.html';\nimport IVueComponent from '../../../../core/adapters/IVueComponent';\nimport {ModalController} from '../../../../core/adapters/ModalComponent';\nimport {Services} from '../../../../core/services/Services';\nimport UserProfileService from '../../../userprofile/services/UserProfileService';\n\nclass AccountLoginModalController extends ModalController {\n    constructor(component){\n        super(component, 'loginModal');\n    }\n\n    protected override onClose() {\n        Services.get<UserProfileService>('UserProfileService').trigger('reset-login-modal');\n    }\n}\n\nexport default function AccountLoginModal(): IVueComponent{\n    return {\n        template: html,\n        controller: AccountLoginModalController,\n        tag: 'account-login-modal'\n    }\n}\n","export const html:string = `\n<div class=\"modal\" id=\"loginModal\">\n    <div class=\"modal-dialog modal-sm\">\n        <div class=\"modal-content\">\n            <div class=\"modal-body clearfix\">\n                <button type=\"button\" class=\"close\" @click=\"close()\" aria-label=\"Close\">\n                    &times;\n                </button>\n                <account-login v-if=\"isOpen\" :modal=\"true\"></account-login>\n            </div>\n        </div>\n    </div>\n</div>\n`;","import AccountLogin from './AccountLogin/AccountLogin';\nimport AccountLoginModal from './AccountLoginModal/AccountLoginModal';\nimport VueApp from '../../../core/adapters/VueApp';\n\n\nexport default function registerComponents(vue_app: VueApp) {\n    // Add all login components to core, it's loaded on every page\n    vue_app.registerComponent(AccountLogin);\n    vue_app.registerComponent(AccountLoginModal)\n}\n","import {field} from '../../../core/models/fields/Field';\nimport {Model} from '../../../core/models/Model';\nimport {Http} from '../../../core/services/Http';\nimport {Services} from '../../../core/services/Services';\nimport {clamp} from '../../../core/utils/utils';\nimport {APIResource} from '../../../core/models/APIResource';\nimport {ForeignKeyURIField, TForeignKeyURI} from '../../../core/models/fields/ForeignKeyURIField';\nimport {UserAddress} from './UserAddress';\n\nexport enum MetricOptions {\n    METRIC = 1,\n    IMPERIAL = 2\n}\n\nexport const METRIC_OPTIONS_ITEMS = [\n    {id: MetricOptions.METRIC, name: 'Metric'},\n    {id: MetricOptions.IMPERIAL, name: 'US Imperial'}\n];\n\nexport class User extends Model {\n    static override uri: string = '/profile/api/user/user/:id/';\n    static override objects: APIResource<User>;\n\n    @field()\n    date_joined: string;\n\n    @field(ForeignKeyURIField, {\n        model: 'UserAddress'\n    })\n    default_billing_address: TForeignKeyURI<UserAddress>;\n\n    @field(ForeignKeyURIField, {\n        model: 'UserAddress'\n    })\n    default_shipping_address: TForeignKeyURI<UserAddress>;\n\n    @field()\n    email: string;\n\n    @field()\n    cell_number: string;\n\n    @field()\n    in_store_credit: number;\n\n    @field()\n    currency: string;\n\n    @field()\n    in_store_credit_localized: number;\n\n    @field()\n    currency_localized: string;\n\n    @field()\n    is_active: boolean;\n\n    @field()\n    last_login: string;\n\n    @field()\n    is_marketing_eligible: boolean;\n\n    @field()\n    metric_option: any;\n\n    @field()\n    social: string;\n\n    @field()\n    text_messaging_consent: boolean;\n\n    @field()\n    rush_modifier: number;\n}\n","import {field, Field} from '../../../core/models/fields/Field';\nimport {Model} from '../../../core/models/Model';\nimport {Services} from '../../../core/services/Services';\nimport {Http} from '../../../core/services/Http';\nimport {APIResource} from '../../../core/models/APIResource';\n\nexport class UserAddress extends Model {\n    public static override uri: string = '/profile/api/user/address/:id/';\n    static override objects: APIResource<UserAddress>;\n\n    @field()\n    archived: boolean;\n\n    @field(Field, {\n        required: true\n    })\n    city: string;\n\n    @field()\n    city_area:string;\n\n    @field()\n    company_name: string;\n\n    @field(Field, {\n        required: true\n    })\n    country: string;\n\n    @field(Field, {\n        required: false\n    })\n    country_area: string;\n\n    @field()\n    default_billing: boolean;\n\n    @field()\n    default_shipping: boolean;\n\n    @field(Field, {\n        required: true\n    })\n    first_name: string;\n\n    @field(Field, {\n        required: true\n    })\n    last_name: string;\n\n    @field(Field, {\n        required: true\n    })\n    phone: string;\n\n    @field(Field, {\n        required: true\n    })\n    postal_code: string;\n\n    @field(Field, {\n        required: true\n    })\n    street_address_1: string;\n\n    @field()\n    street_address_2: string;\n\n    @field()\n    parent: string;\n\n    @field()\n    po_box: boolean;\n\n    _constructor() {\n        if (!this.country)\n            this.country = 'US';\n    }\n\n    get label(): string {\n        return `${this.first_name} ${this.last_name} ${this.street_address_1} ${this.street_address_2}, ${this.city}, ${this.country_area} ${this.postal_code}`;\n    }\n\n    get fullName() {\n        return `${this.first_name} ${this.last_name}`;\n    }\n\n    verify() {\n        return Services.get<Http>('$http').request({\n            method: 'POST',\n            data: this.getPostData(),\n            url: '/profile/api/verify-address/'\n        });\n    }\n\n    // Deprecated\n    useVerifiedAddressCallback(callback?: () => void): void {\n        Services.get<Http>('$http').request({\n            method: 'POST',\n            data: {\n                address_id: this.id\n            },\n            url: '/profile/api/use-verified-address/'\n        }).then((response: any) => {\n            this.reload().then(() => {\n                if (callback) {\n                    callback()\n                }\n            });\n        }, (err: any) => {\n            callback();\n            return err;\n        });\n    }\n    useVerifiedAddress() {\n        return Services.get<Http>('$http').request({\n            method: 'POST',\n            data: {\n                address_id: this.id\n            },\n            url: '/profile/api/use-verified-address/'\n        }).then((response) => {\n            this.reload();\n            return response;\n        }, (error) => {\n            return error;\n        });\n    }\n\n    override validate() {\n        super.validate();\n\n        if (!this.city || this.city == '') {\n            this._errors.add('city', 'For APO addresses use \"APO\".');\n        }\n\n        if(this.country == 'US' && !this.country_area) {\n            this._errors.add('country_area', 'This field is required.');\n        }\n        else if(this.errors) {\n            this._errors.remove('country_area');\n        }\n\n        return this._errors;\n    }\n}\n","export class DuplicateFilterException extends Error {\n    public override name = \"DuplicateFilterException\";\n    constructor (message) {\n        super(message);\n    }\n}\n\nexport class DuplicateServiceException extends Error {\n    public override name = \"DuplicateServiceException\";\n    constructor (message) {\n        super(message);\n    }\n}\n\nexport class UndefinedServiceException extends Error {\n    public override name = \"UndefinedServiceException\";\n    constructor (message) {\n        super(message);\n    }\n}\n","import VueComponent, {data, method} from './VueComponent';\nimport {closeModal, openModal} from '../utils/Modal';\nimport {uuid4} from '../utils/uuid';\n\n\nexport abstract class ModalController extends VueComponent {\n    private observer: MutationObserver;\n    private modal_element;\n    protected dynamic_id: boolean;\n\n    static uuids: string[] = [];\n\n    @data()\n    modal_id: string;\n\n    @data()\n    modal_uuid: string;\n\n    @data()\n    isOpen: boolean;\n\n    constructor(component, modal_id) {\n        super(component);\n\n        if (!modal_id) {\n            console.error(`The modal ID for ${this.constructor.name} was not defined.`);\n        }\n\n        this.modal_id = modal_id;\n        this.generate_modal_id();\n    }\n\n    private generate_modal_id(max=5) {\n        /*\n            If multiple modals are used on a page there can be id collisions when using <label for=\"some-id\"> so an internal id is generated to help make ids unique.\n         */\n        let uuid = uuid4().slice(0, max);\n\n        if (ModalController.uuids.indexOf(uuid) != -1) {\n            return this.generate_modal_id(max + 1);\n        }\n\n        this.modal_uuid = uuid;\n        ModalController.uuids.push(this.modal_uuid);\n    }\n\n    override mounted() {\n        super.mounted();\n\n        this.modal_element = this.$el;\n\n        // If we have anything other than a normal element node, use the parent and query from that\n        if (this.modal_element.nodeType != Node.ELEMENT_NODE && this.modal_element.parentNode) {\n            this.modal_element = this.modal_element.parentNode;\n        }\n\n        if (!this.dynamic_id && this.modal_element.id != this.modal_id) {\n            if (this.modal_element.querySelector) {\n                let qry = this.modal_element.querySelector(`#${this.modal_id}`);\n\n                if (qry && qry.id == this.modal_id) {\n                    this.modal_element = qry;\n                }\n                else {\n                    console.error(`The modal id ${this.modal_id} is not the root element or child of the root element ${this.constructor.name}. The id \"${this.modal_element.id}\" was found instead.`);\n                }\n            }\n            else {\n                console.error(`The modal id ${this.modal_id} is not the root element of ${this.constructor.name}. The id \"${this.modal_element.id}\" was found instead.`);\n            }\n        }\n\n        // This will watch for changes to the class list and determine if onOpen or onClose needs to be called\n        this.observer = new MutationObserver((mutations, observer) => {\n            let class_change = false;\n            for (const mutation of mutations) {\n                if (mutation.attributeName == 'class') {\n                    class_change = true;\n                    break;\n                }\n            }\n\n            if (class_change) {\n                if (this.modal_element.classList.contains('show') && !this.isOpen) {\n                    this.onOpen();\n                    this.isOpen = true;\n                }\n                else if (!this.modal_element.classList.contains('show') && this.isOpen) {\n                    this.onClose();\n                    this.isOpen = false;\n                }\n            }\n        });\n        this.observer.observe(this.modal_element, {attributes: true});\n    }\n\n    // Called when the modal is closed\n    protected reset(): void {}\n\n    // Called when the modal is opened\n    protected onOpen(): void {}\n\n    // Called when the modal is closed\n    protected onClose(): void {}\n\n    @method()\n    protected open(): void {\n        if (!this.isOpen) {\n            openModal(this.modal_id);\n        }\n    }\n\n    @method()\n    protected close(): void {\n        if (this.isOpen) {\n            closeModal(this.modal_id);\n        }\n    }\n}\n","import IVueDirective from '../adapters/IVueDirective';\n\nexport default function ClickOutside(): IVueDirective {\n    return {\n        directive: {\n            beforeMount: function (el, binding, vnode) {\n                if (typeof binding.value !== 'function') {\n                    console.error(`The click outside directive requires a binding to a function not ${binding.value}. This directive will be disabled.`)\n                    return;\n                }\n\n                el.clickOutsideEvent = function(event) {\n                    if (!(el == event.target || el.contains(event.target))) {\n                        binding.value(event);\n                    }\n                };\n                document.body.addEventListener('click', el.clickOutsideEvent)\n            },\n            unmounted: function (el) {\n                document.body.removeEventListener('click', el.clickOutsideEvent)\n            },\n        },\n        tag: 'click-outside'\n    }\n}","import IVueDirective from '../adapters/IVueDirective';\n\nexport type DropdownConfigType = {\n    permanent?: boolean\n    stay_open?: boolean,\n    on_close?: () => void;\n}\n\nexport default function Dropdown(): IVueDirective {\n    return {\n        directive: {\n            beforeMount: function (el, binding, vnode) {\n                const root = el;\n                const button = el.children[0];\n                const list = [...el.children].find(v => v.classList.contains('dropdown-list')) || el.children[1];\n                const config = binding.value;\n\n                button.dropdownOnButtonClickEvent = function(event) {\n                    let target = event.target as any;\n\n                    if (target?.nodeName == \"INPUT\") {\n                        event.preventDefault();\n                        target.focus();\n                    }\n                    else {\n                        root.classList.toggle('open');\n\n                        if (root.classList.contains('open')) {\n                            if (button.querySelector('input')) {\n                                button.querySelector('input').focus();\n                            }\n                            else {\n                                list.focus();\n                            }\n                        }\n                    }\n                }\n                button.addEventListener('click', button.dropdownOnButtonClickEvent);\n\n                root.clickOutsideEvent = function(event) {\n                    // Prevent space bar from activating the button\n                    if (event instanceof KeyboardEvent) {\n                        if (root.contains(event.target) && event.code == 'Space') {\n                            event.preventDefault();\n                        }\n                    }\n\n                    if (event instanceof MouseEvent) {\n                        if (root.classList.contains('open')) {\n                            // Clicks outside of the dropdown\n                            if (!(root == event.target || root.contains(event.target))) {\n                                root.classList.remove('open');\n                                if (config?.on_close) {\n                                    config.on_close();\n                                }\n                            }\n                            // Clicks within the dropdown\n                            else if (root != event.target && root.children[1].contains(event.target)) {\n                                if (!config || !config.stay_open) {\n                                    root.classList.remove('open');\n                                    if (config?.on_close) {\n                                        config.on_close();\n                                    }\n                                }\n                            }\n                        }\n                    }\n                };\n\n                if (!config?.permanent) {\n                    document.body.addEventListener('click', root.clickOutsideEvent);\n                    document.body.addEventListener('keyup', root.clickOutsideEvent);\n                }\n            },\n            unmounted: function (el) {\n                const root = el;\n                const button = el.children[0];\n\n                if (button.dropdownOnButtonClickEvent) {\n                    button.removeEventListener('click', button.dropdownOnButtonClickEvent);\n                }\n\n                if (el.clickOutsideEvent) {\n                    document.body.removeEventListener('click', root.clickOutsideEvent);\n                    document.body.removeEventListener('keyup', root.clickOutsideEvent);\n                }\n            },\n        },\n        tag: 'dropdown'\n    }\n}\n","import {copyToClipboard} from '../utils/utils';\nimport IVueDirective from '../adapters/IVueDirective';\n\nexport default function CopyToClipboard(): IVueDirective {\n    return {\n        directive: {\n            beforeMount: function (el, binding, vnode) {\n                let key = binding?.value;\n                if (!key) {\n                    console.error('Copy directive did not receive a id');\n                    return;\n                }\n\n                el.addEventListener('click', () => {\n                    let elementToCopy = document.getElementById(key) as HTMLInputElement;\n                    if (!elementToCopy) {\n                        console.error('Unable to find element to copy');\n                    }\n\n                    switch (elementToCopy.tagName) {\n                        case 'INPUT': {\n                            copyToClipboard(elementToCopy.value);\n                            break;\n                        }\n\n                        case 'TEXTAREA': {\n                            elementToCopy.select();\n                            copyToClipboard(elementToCopy.value);\n                            break\n                        }\n\n                        default: {\n                            copyToClipboard(elementToCopy.value);\n                            break;\n                        }\n                    }\n\n                    el.innerHTML = '<i class=\"fa fa-check\"></i> Copied To Clipboard';\n                });\n            },\n        },\n        tag: 'copy-to-clipboard'\n    }\n}","import IVueDirective from '../../adapters/IVueDirective';\nimport tippy from 'tippy.js';\n\nimport Company from '../../services/Company';\nimport {Services} from '../../services/Services';\nimport {mobileScreenSize} from '../../utils/utils';\n\nexport default function Tooltip(): IVueDirective {\n    return {\n        directive: {\n            beforeMount: function (el, binding, vnode) {\n                // Tooltips don't work well on mobile so lets just disable them\n                if (mobileScreenSize()) {\n                    return;\n                }\n\n                if (!el.attributes['tooltip-content'] || !el.attributes['tooltip-content'].value || el.attributes['tooltip-content'].value == 'false') {\n                    return;\n                }\n\n                const content = el.attributes['tooltip-content'].value\n                let position = null;\n\n                if(el.attributes['tooltip-position']) {\n                    position = el.attributes['tooltip-position'].value\n                }\n                else {\n                    position = 'top'\n                }\n\n                el['tippy_instance'] = tippy(el, {\n                    content: content,\n                    placement: position,\n                    theme: 'custom',\n                    animation: 'perspective',\n                    delay: [350, 0]\n                });\n            },\n            beforeUnmount: function (el: Element, binding, vnode) {\n                if (el['tippy_instance']) {\n                    el['tippy_instance'].unmount();\n                }\n            }\n        },\n        tag: 'tooltip'\n    }\n}","import IVueDirective from '../adapters/IVueDirective';\n\nexport default function PasswordToggle(): IVueDirective {\n    return {\n        directive: {\n            beforeMount: function (el, binding, vnode) {\n                let input = el.querySelector('input');\n                let toggle_button = el.querySelector('i.password-toggle')\n                let on_click = () => {\n                    let is_password = input.getAttribute('type') == 'password';\n                    input.setAttribute('type', is_password ? 'text' : 'password');\n                    toggle_button.classList.toggle('toggled');\n                }\n                toggle_button.addEventListener('click', on_click);\n            },\n        },\n        tag: 'password-toggle'\n    }\n}\n","import IVueDirective from '../adapters/IVueDirective';\n\nexport default function ToggleInSideScrollView(): IVueDirective {\n    return {\n        directive: {\n            mounted: function (el, binding, vnode) {\n                let target = document.getElementById(binding?.value);\n                if (target) {\n                    let check = () => {\n                        let parent_bounds = target.parentElement.getBoundingClientRect();\n                        let bounds = target.getBoundingClientRect();\n                        if (bounds.left >= parent_bounds.left - bounds.width/2 && bounds.right <= parent_bounds.right + bounds.width/2) {\n                            el.classList.add('in-view');\n                        }\n                        else {\n                            el.classList.remove('in-view');\n                        }\n                    }\n                    target.parentElement.addEventListener('scroll', check, {passive: true});\n                    check();\n                }\n            },\n        },\n        tag: 'toggle-in-side-scroll-view'\n    }\n}\n","import IVueDirective from '../adapters/IVueDirective';\n\nexport default function InnerScrollTo(): IVueDirective {\n    return {\n        directive: {\n            mounted: function (el, binding, vnode) {\n                el.addEventListener('click', () => {\n                    if (binding?.value) {\n                        let el = document.getElementById(binding?.value);\n                        if (!el.parentElement) {\n                            return;\n                        }\n\n                        // Gap seems to be ignored by offsetLeft so we need to subtract it\n                        let left_offset = el.offsetLeft;\n                        let gap = el.parentElement.computedStyleMap().get('gap');\n                        if (gap) {\n                            left_offset -= parseInt(gap.toString());\n                        }\n\n                        el?.parentElement?.scroll({left: left_offset, behavior: \"smooth\"})\n                    }\n                })\n            },\n        },\n        tag: 'inner-scroll-to'\n    }\n}\n","import IVueDirective from '../adapters/IVueDirective';\n\nexport default function FileHover(): IVueDirective {\n    return {\n        directive: {\n            mounted: function (el: Element, binding, vnode) {\n                // This solution kinda sucks but so does the dragenter/dragleave event listener.\n                // It will call dragleave on every child element unless you specify pointer-events: none.\n                // But that prevents buttons and any other interactable element from working.\n                // So a simple solution is to keep track of the depth and only when the depth is 0 will the class be removed.\n                let element_counter = 0;\n                let window_counter = 0;\n\n                let drag_enter = (event) => {\n                    element_counter++;\n                    if (event.target == el) {\n                        el.classList.add('file-hover');\n                    }\n                }\n                let drag_leave = (event) => {\n                    element_counter--;\n                    if (element_counter == 0) {\n                        el.classList.remove('file-hover');\n                    }\n                }\n                let window_drag_enter = (event) => {\n                    window_counter++;\n                    el.classList.add('file-dragging');\n                }\n                let window_drag_leave = (event) => {\n                    window_counter--;\n                    if (window_counter == 0) {\n                        el.classList.remove('file-dragging');\n                    }\n                }\n                let drag_end = (event) => {\n                    window_counter = 0;\n                    element_counter = 0;\n                    el.classList.remove('file-dragging');\n                    el.classList.remove('file-hover');\n                }\n\n                el.addEventListener('dragenter', drag_enter);\n                el.addEventListener('dragleave', drag_leave);\n                el.addEventListener('drop', drag_end);\n                window.addEventListener('dragend', drag_end);\n                window.addEventListener('dragenter', window_drag_enter);\n                window.addEventListener('dragleave', window_drag_leave);\n\n                el['_file_hover_cleanup'] = () => {\n                    window.removeEventListener('dragleave', window_drag_leave);\n                    window.removeEventListener('dragenter', window_drag_enter);\n                    window.removeEventListener('dragend', drag_end);\n                    el.removeEventListener('drop', drag_end);\n                    el.removeEventListener('dragleave', drag_leave);\n                    el.removeEventListener('dragenter', drag_enter)\n                }\n            },\n            beforeUnmount: function (el: Element, binding, vnode) {\n                if (el['_file_hover_cleanup']) {\n                    el['_file_hover_cleanup']();\n                }\n            }\n        },\n        tag: 'file-hover'\n    }\n}\n","import {createApp, Component, defineAsyncComponent} from 'vue';\nimport VueComponent from './VueComponent';\nimport {Services} from '../services/Services';\nimport IVueComponent from './IVueComponent';\nimport dayjs from 'dayjs';\nimport localizedFormat from 'dayjs/plugin/localizedFormat';\nimport {DuplicateFilterException} from './Exceptions';\nimport VueItem, {captureVueException} from './VueItem';\nimport IVueDirective from './IVueDirective';\nimport ClickOutside from '../directives/ClickOutside';\nimport Dropdown from '../directives/Dropdown';\nimport NamedRouteService from '../services/NamedRouteService';\nimport CopyToClipboard from '../directives/CopyToClipboard';\nimport UserProfileService from '../../apps/userprofile/services/UserProfileService';\nimport {clamp, kebabize, range, userPrefersDarkMode, yieldThread} from '../utils/utils';\nimport Debug from '../services/Debug';\nimport * as Sentry from '@sentry/browser';\nimport Tooltip from '../directives/Tooltip/Tooltip';\nimport {Model} from '../models/Model';\nimport APIResponse from '../models/APIResponse';\nimport PasswordToggle from '../directives/PasswordToggle';\nimport {VueComponentConfig} from './VueComponentConfig';\nimport ToggleInSideScrollView from '../directives/ElementInView';\nimport InnerScrollTo from '../directives/InnerScrollTo';\nimport {IPromise, SimplePromise} from '../utils/SimplePromise';\nimport FileHover from '../directives/FileHover';\nimport VueMixin from \"./VueMixin\";\n\nexport default class VueApp extends VueItem {\n    protected app;\n    private registered_tags: string[] = [];\n\n    constructor() {\n        super();\n\n        this.app = this.buildApp();\n    }\n\n    protected onComponentCreation(component) {\n        this.component = component;\n        if (this.mixin_instances) {\n            for (const mixin of Object.values(this.mixin_instances)) {\n                (mixin as VueMixin).component = component;\n            }\n        }\n    }\n\n    public static GLOBAL_FILTERS = {\n        currency(value: Number|number|string, currency: string) {\n            if (value === null || value === undefined || isNaN(Number(value))) {\n                return '';\n            }\n\n            if (!currency) {\n                if (value != 0) {\n                    try {\n                        console.error(`Monetary value specified without a currency.`);\n                        console.trace();\n                        throw Error('Invalid Currency')\n                    }\n                    catch (e) {\n                        Sentry.captureException(e);\n                    }\n                }\n\n                currency = 'USD'\n            }\n\n            try {\n                return Number(value).toLocaleString(navigator.language, {style: 'currency', currency: currency});\n            }\n            catch (e) {\n                // Fallback for \"Incorrect locale information provided\"\n                // Not sure what causes this error, maybe privacy settings?\n                return `${value} ${currency}`;\n            }\n        },\n        date(value, format?) {\n            if (!value) {\n                return ''\n            }\n\n            if (!window['dayjs_initialized']) {\n                //Allow localization\n                dayjs.extend(localizedFormat);\n\n                window['dayjs_initialized'] = true;\n            }\n\n            // AngularJS conversions for named date types to work with days.js\n            if (!format) {\n                format = 'll';\n            }\n            else if (format == 'medium') {\n                format = 'lll';\n            }\n            else if (format == 'short') {\n                format = 'M/D/YY h:mm a';\n            }\n            else if (format == 'fullDate') {\n                format = 'llll';\n            }\n            else if (format == 'longDate') {\n                format = 'LL';\n            }\n            else if (format == 'mediumDate') {\n                format = 'll';\n            }\n            else if (format == 'shortDate') {\n                format = 'l';\n            }\n            else if (format == 'mediumTime') {\n                format = 'LTS';\n            }\n            else if (format == 'shortTime') {\n                format = 'LT';\n            }\n            else if (format == 'simple') {\n                format = 'MMM D'\n            }\n            else if (format == 'xs') {\n                let d = dayjs(value)\n                if (d.year() == dayjs().year()) {\n                    return d.format('MM/DD')\n                }\n                return d.format('MM/DD/YY')\n            }\n\n            return dayjs(value).format(format);\n        },\n        uppercase(value) {\n            if (value === null || value === undefined) {\n                return '';\n            }\n            return String(value).toUpperCase();\n        },\n        lowercase(value) {\n            if (value === null || value === undefined) {\n                return '';\n            }\n            return String(value).toLowerCase();\n        },\n        floatformat(value, decimal_places?) {\n            if (value === null || value === undefined) {\n                return '';\n            }\n            if (decimal_places === null || decimal_places === undefined) {\n                decimal_places = 2;\n            }\n\n            return Number(value).toFixed(parseInt(decimal_places));\n        },\n        shortNumber(value) {\n            if (value === null || value === undefined) {\n                return '';\n            }\n\n            let parsed = Number(value);\n            if (isNaN(parsed)) {\n                return value;\n            }\n\n            return Number(value).toString();\n        },\n        nlToArray(text) {\n            return this.strToArray(text, '\\n');\n        },\n        strToArray(text, separator = '\\n') {\n            if (!text) {\n                return []\n            }\n\n            let lines = String(text).split(separator);\n\n            // Trim all lines\n            lines = lines.map((line) => {\n                return line.trim();\n            });\n\n            // Remove empty lines\n            let idx: number = lines.indexOf('');\n            while (idx > -1) {\n                lines.splice(idx, 1);\n                idx = lines.indexOf('');\n            }\n\n            // ng-repeat cannot have duplicates, so we need to make sure every\n            // line is unique. Will cause error if duplicates exist.\n            // Update: This may no longer be required with vue but lets do it anyway to maintain the same functionality\n            const dupes = {};\n            for (const line of lines) {\n                dupes[line] = (dupes[line] || 0) + 1;\n            }\n\n            for (const dupe in dupes) {\n                if (dupes[dupe] == 1) {\n                    continue;\n                }\n                for (const idx in lines) {\n                    if (lines[idx] != dupe) {\n                        continue;\n                    }\n\n                    // Add some spaces on the end to make it unique\n                    lines[idx] = dupe + Array(dupes[dupe]).join(' ');\n                    dupes[dupe] -= 1;\n                }\n            }\n\n            return lines;\n        },\n        orderBy(array, key, reversed?, formatter?) {\n            if (!array || !key) {\n                return array;\n            }\n\n            if (!formatter) {\n                formatter = (v) => v;\n            }\n\n            if (typeof array[Symbol.iterator] !== 'function') {\n                console.error('A non iterable object was passed into orderBy')\n                console.error(array);\n                return [];\n            }\n\n            // Copy array so the sort function won't modify the real object\n            let array_copy = [];\n            for (const item of array) {\n                array_copy.push(item);\n            }\n\n            array_copy.sort((a,b) => {\n                let av = formatter(a[key]);\n                let bv = formatter(b[key]);\n\n                let v = 0\n                if (av < bv) {\n                    v = -1;\n                }\n                else if (av > bv) {\n                    v = 1;\n                }\n\n                if (reversed) {\n                    v *= -1;\n                }\n\n                return v;\n            })\n\n            return array_copy;\n        },\n        route(route_name, kwargs) {\n            return Services.get<NamedRouteService>('$NamedRouteService').reverse(route_name, kwargs);\n        },\n        number(num, precision) {\n            if (precision != null) {\n                return Number(Number(num).toFixed(precision)).toLocaleString();\n            }\n            else {\n                return Number(num).toLocaleString();\n            }\n        },\n        convertMeasurement(num, show_unit=false) {\n            let converted = Services.get<UserProfileService>('UserProfileService').convertSizeFromInches(num);\n            let unit = Services.get<UserProfileService>('UserProfileService').size_notation;\n\n            if (!show_unit) {\n                return clamp(converted);\n            }\n\n            return `${clamp(converted)}${unit}`\n        },\n        static(path: string) {\n            let static_path = window['static_path'];\n            if (!static_path) {\n                static_path = '/static/'\n            }\n            return `${window['static_path']}${path}`\n        },\n        showDarkModeOption() {\n            return !(userPrefersDarkMode() && document.querySelector('body').classList.contains('light'));\n        },\n        clamp(value: string, characters: number) {\n            if (!value || typeof value !== 'string') {\n                return value;\n            }\n\n            if (value.length <= characters) {\n                return value;\n            }\n\n            return value.slice(0, characters) + '...';\n        },\n        range: range\n    };\n\n    /*\n      Register a async component config\n\n      This allows everything in the async config to be bundled into a single file. The config file should be a\n      simple object that maps component tags to classes. All of these tags will need to be defined in the tags\n      array.\n     */\n    registerAsyncConfig(tags: string[], import_function: () => Promise<any>) {\n        for (const tag of tags) {\n            this.registered_tags.push(tag);\n            let async_component = defineAsyncComponent(() => {\n                return new Promise((resolve, reject) => {\n                    import_function().then((imported) => {\n                        let data: IVueComponent = imported.default[tag]();\n                        let component: Component = this.buildComponent(data.controller, data.template, tag);\n                        resolve(component as any);\n                    });\n                });\n            });\n\n            this.app.component(tag, async_component);\n        }\n    }\n\n    /*\n      Import/register a single async component.\n\n      This will split the component into its own file and load it only when its required.\n     */\n    registerAsyncComponent(tag: string, import_function: () => Promise<any>) {\n        let async_component = defineAsyncComponent(() => {\n            return new Promise((resolve, reject) => {\n                import_function().then((imported) => {\n                    let data: IVueComponent = imported.default();\n                    let component: Component = this.buildComponent(data.controller, data.template, tag);\n                    resolve(component as any);\n                });\n            });\n        });\n\n        this.app.component(tag, async_component);\n    }\n\n    /*\n      Register a component into the app core by using a config function.\n\n      This will bundle the component into the core apps file that is loaded on every page.\n     */\n    public registerComponent(config_function: () => IVueComponent) {\n        let data = config_function();\n\n        if (data.requires) {\n            for (const item of data.requires) {\n                if (!this.registered_tags.includes(item.tag)) {\n                    this.registerVueComponentConfig(item);\n                }\n            }\n        }\n\n        return this.registerComponentManually(data.tag, data.controller, data.template);\n    }\n\n    /*\n      Register a component manually.\n\n      This will bundle the component into the core apps file that is loaded on every page.\n     */\n    public registerComponentManually(tag: string, Cls: typeof VueComponent, html: string) {\n        this.registered_tags.push(tag);\n        this.app.component(tag, this.buildComponent(Cls, html, tag));\n    }\n\n    public registerVueComponentConfig(config: VueComponentConfig) {\n        this.registered_tags.push(config.tag);\n        this.app.component(config.tag, config.component);\n    }\n\n    private buildMethods(instance_class, methods={}) {\n        if (instance_class.methods_list) {\n            for (const method_function_name of instance_class.methods_list) {\n                methods[method_function_name] = function (...args) {\n                    // Component was already garbage collected somehow\n                    if (!this.ctrl) {\n                        return;\n                    }\n\n                    let function_instance = this.ctrl.findFunctionInstance(method_function_name);\n\n                    if (!function_instance) {\n                        console.error(`The registered method with name ${method_function_name} is not a function on the controller ${this.ctrl.constructor.name} or its mixins.`);\n                    }\n\n                    return function_instance[method_function_name](...args);\n                };\n            }\n        }\n\n        if (instance_class.mixins) {\n            for (const mixin of instance_class.mixins) {\n                methods = this.buildMethods(mixin as any, methods);\n            }\n        }\n\n        return methods;\n    }\n\n    private buildPropsList(instance_class, props_list=[]) {\n        // todo: Look into proving type hints with props\n        // https://v3.vuejs.org/guide/component-props.html#prop-validation\n\n        if (instance_class.props_list) {\n            // Only do this for array bindings, we might need to change the api for props to make things uniform\n            for (const prop of instance_class.props_list) {\n                props_list.push(prop.name);\n            }\n        }\n\n        if (instance_class.mixins) {\n            for (const mixin of instance_class.mixins) {\n                props_list = this.buildPropsList(mixin as any, props_list);\n            }\n        }\n\n        return props_list;\n    }\n\n    private buildPropWatchers(instance_class, prop_watchers={}) {\n        if (instance_class.props_list) {\n            // Only do this for array bindings, we might need to change the api for props to make things uniform\n            for (const prop of instance_class.props_list) {\n                if (prop.watch) {\n                    prop_watchers[prop.name] = function (new_value, old_value) {\n                        if (old_value != new_value) {\n                            this.ctrl.trigger(`change:${prop.name}`);\n                            this.ctrl.trigger('change:props');\n\n                            // todo: it would be nice if we could make this generic so that anything supported could work here without needing to hard code it\n                            if (new_value instanceof Model) {\n                                if (!new_value.$resolved) {\n                                    new_value.$promise.then(this.$forceUpdate.bind(this));\n                                }\n                            }\n                            if (new_value instanceof APIResponse) {\n                                if (!new_value.$resolved) {\n                                    new_value.$promise.then(this.$forceUpdate.bind(this));\n                                }\n                            }\n                        }\n                    }\n                }\n            }\n        }\n\n        if (instance_class.mixins) {\n            for (const mixin of instance_class.mixins) {\n                prop_watchers = this.buildPropWatchers(mixin as any, prop_watchers);\n            }\n        }\n\n        return prop_watchers;\n    }\n\n    private buildComputed(instance_class, computed={}) {\n        if (instance_class.computed_list) {\n            for (const computed_function_name of instance_class.computed_list) {\n                let descriptor = Object.getOwnPropertyDescriptor(instance_class.prototype, computed_function_name);\n\n                // Getter/setter support\n                // Does not support mixins for now. Add support if needed\n                if (descriptor.get) {\n                    computed[computed_function_name] = {\n                        get(previous) {\n                            return this.ctrl[computed_function_name];\n                        },\n                        set(new_value) {\n                            this.ctrl[computed_function_name] = new_value;\n                        }\n                    }\n                }\n                else  {\n                    computed[computed_function_name] = function (...args) {\n                        // Component was already garbage collected somehow\n                        if (!this.ctrl) {\n                            return;\n                        }\n\n                        let function_instance = this.ctrl.findFunctionInstance(computed_function_name);\n\n                        if (!function_instance) {\n                            console.error(`The registered computed property with name ${computed_function_name} is not a function on the controller ${this.ctrl.constructor.name} or its mixins.`);\n                        }\n\n                        return function_instance[computed_function_name](...args);\n                    };\n                }\n            }\n        }\n\n        if (instance_class.mixins) {\n            for (const mixin of instance_class.mixins) {\n                computed = this.buildComputed(mixin as any, computed);\n            }\n        }\n\n        return computed;\n    }\n\n    private buildEmits(instance_class, emits=[]) {\n        if (instance_class.emits_list) {\n            // Only do this for array bindings, we might need to change the api for props to make things uniform\n            for (const emit of instance_class.emits_list) {\n                // todo: This will need some more work so we can standardize things\n                if (emit.indexOf(':') == -1) {\n                    emits.push(kebabize(emit));\n                }\n                else {\n                    emits.push(emit);\n                }\n            }\n        }\n\n        if (instance_class.props_list) {\n            for (const item of instance_class.props_list) {\n                if (item.emit) {\n                    if (emits.indexOf(`update:${item.name}`) == -1) {\n                        emits.push(`update:${item.name}`);\n                    }\n                }\n            }\n        }\n\n        if (instance_class.mixins) {\n            for (const mixin of instance_class.mixins) {\n                emits = this.buildEmits(mixin as any, emits);\n            }\n        }\n\n        return emits;\n    }\n\n\n    /*\n      Transforms a class based component into a vue component object.\n     */\n    private buildComponent(Cls: typeof VueComponent, html: string, tag: string): Component {\n        return {\n            name: tag,\n            template: html,\n            data() {\n                return this.ctrl.data();\n            },\n            created() {\n                this.ctrl.created();\n            },\n            beforeCreate() {\n                // @ts-ignore - Idk why this typing fails here\n                this.ctrl = new Cls(this, ...Services.getList(Cls.$inject));\n                this.ctrl.beforeCreate();\n            },\n            beforeMount() {\n                this.ctrl?.beforeMount();\n            },\n            mounted() {\n                this.ctrl?.mounted();\n            },\n            beforeUpdate() {\n                this.ctrl?.beforeUpdate();\n            },\n            updated() {\n                this.ctrl?.updated();\n            },\n            activated() {\n                this.ctrl?.activated();\n            },\n            deactivated() {\n                this.ctrl?.deactivated();\n            },\n            beforeUnmount() {\n                this.ctrl?.beforeUnmount();\n            },\n            unmounted() {\n                this.ctrl?.unmounted();\n                this.ctrl = null;\n            },\n            errorCaptured(err, instance, info) {\n                if (this.ctrl) {\n                    return this.ctrl.errorCaptured(err, instance, info);\n                }\n                else {\n                    captureVueException(err, instance, info);\n                    return true;\n                }\n            },\n            renderTracked(e) {\n                this.ctrl?.renderTracked(e);\n            },\n            renderTriggered(e) {\n                this.ctrl?.renderTriggered(e);\n            },\n            computed: this.buildComputed(Cls),\n            methods: this.buildMethods(Cls),\n            props: this.buildPropsList(Cls),\n            watch: this.buildPropWatchers(Cls),\n            emits: this.buildEmits(Cls)\n        };\n    }\n\n    private buildApp() {\n        const app_instance = this;\n        const Cls = this.constructor as any;\n\n        return createApp({\n            data() {\n                return this.ctrl.data();\n            },\n            created() {\n                this.ctrl.created();\n            },\n            beforeCreate() {\n                // @ts-ignore - Idk why this typing fails here\n                app_instance.onComponentCreation(this);\n                this.ctrl = app_instance;\n                this.ctrl.beforeCreate();\n            },\n            beforeMount() {\n                this.ctrl.beforeMount();\n            },\n            mounted() {\n                this.ctrl.mounted();\n            },\n            beforeUpdate() {\n                this.ctrl.beforeUpdate();\n            },\n            updated() {\n                if (this.ctrl) {\n                    this.ctrl.updated();\n                }\n            },\n            activated() {\n                this.ctrl.activated();\n            },\n            deactivated() {\n                this.ctrl.deactivated();\n            },\n            beforeUnmount() {\n                this.ctrl.beforeUnmount();\n            },\n            unmounted() {\n                this.ctrl.unmounted();\n                this.ctrl = null;\n            },\n            errorCaptured(err, instance, info) {\n                if (this.ctrl) {\n                    return this.ctrl.errorCaptured(err, instance, info);\n                }\n                else {\n                    captureVueException(err, instance, info);\n                    return true;\n                }\n            },\n            renderTracked(e) {\n                this.ctrl.renderTracked(e);\n            },\n            renderTriggered(e) {\n                this.ctrl.renderTriggered(e);\n            },\n            computed: this.buildComputed(Cls),\n            methods: this.buildMethods(Cls),\n            props: this.buildPropsList(Cls),\n        });\n    }\n\n    /*\n        Adds a global filter that can be accessed with {{ $filters.foo }} from anywhere.\n     */\n    public registerFilter(name, func) {\n        if (VueApp.GLOBAL_FILTERS[name]) {\n            const error_msg = `The filter \"${name}\" has already been registered.`;\n            console.error(error_msg);\n            throw new DuplicateFilterException(error_msg);\n        }\n        VueApp.GLOBAL_FILTERS[name] = func;\n    }\n\n    public registerDirective(config_func: () => IVueDirective) {\n        const config: IVueDirective = config_func();\n\n        this.app.directive(config['tag'], config['directive']);\n    }\n\n    /*\n        Mounts the app to a dom element. Once this is done components can no longer be registered to this app.\n     */\n    public onMount(selector: string) {\n\n        // Configure the global filters\n        this.app.config.globalProperties.$filters = VueApp.GLOBAL_FILTERS;\n\n        // Register core directives\n        this.registerDirective(ClickOutside);\n        this.registerDirective(Dropdown);\n        this.registerDirective(PasswordToggle);\n        this.registerDirective(CopyToClipboard);\n        this.registerDirective(Tooltip);\n        this.registerDirective(ToggleInSideScrollView);\n        this.registerDirective(InnerScrollTo);\n        this.registerDirective(FileHover);\n\n        let result = this.app.mount(selector);\n\n        if (result &&  Services.isRegistered('Debug')) {\n            Services.get<Debug>('Debug').mounted_list.push(selector);\n            Services.get<Debug>('Debug').app_component_list[selector] = this.registered_tags;\n        }\n    }\n\n    static mount(selector: string, setup?: (app: VueApp) => void, now?: boolean): VueApp|null {\n        if (!document.querySelector(selector)) {\n            return null;\n        }\n\n        this.init();\n\n        // Mount the application on the next frame to reduce the total blocking time.\n        let init_app = () => {\n            let start = new Date();\n            let app = new this();\n            if (setup) {\n                setup(app);\n            }\n            app.onMount(selector);\n            return app;\n        };\n\n        if (now) {\n            return init_app();\n        }\n        else {\n            yieldThread().then(() => {\n                init_app();\n            })\n            return null;\n        }\n    }\n\n    // This is used for setting up data before the application is initialized and mounted.\n    // We need to aim for a maximum of 50ms frame times. If we do the entire initialization and data setup in one go then\n    // we are more heavily penalized than splitting it up into multiple frames. This reduced the total blocking time from 670ms to 380ms\n    static init(...args) {};\n}\n","import VueItem, {DataItem, PropItem, RefAction} from './VueItem';\nimport APIResponse from \"../models/APIResponse\";\nimport {Model} from \"../models/Model\";\nimport {EventDispatcher} from \"../utils/EventDispatcher\";\nimport {metadata} from \"../utils/metadata\";\n\n// Provides access to the data in the html\nexport function prop(data?: PropItem) {\n    return function(func: any, context: ClassFieldDecoratorContext) {\n        const key = context.name as string;\n        if (context.metadata) {\n            context.metadata[key] = {\n                type: 'prop',\n                config: data\n            }\n        }\n\n        context.addInitializer(function() {\n            let setupBinding = (v) => {\n                /*\n                    Look into making these more extendable or generic so that asynchronous items outside of this package\n                    can also correctly update.\n                 */\n                if (v instanceof EventDispatcher) {\n                    v.bind('sync', () => {\n                        (this as VueItem).component.$forceUpdate();\n                    }, this);\n                    // Prevents memory leaks that would keep a reference to the controller\n                    (this as VueItem).once('$destroy', () => {\n                        v.unbindWithContext('sync', this);\n                    }, this);\n                }\n\n                if (v instanceof Model) {\n                    if (!v.$resolved && !v.$promise.isResolved()) {\n                        v.$promise.then((this as VueItem).$forceUpdate.bind(this));\n                    }\n                }\n\n                if (v instanceof APIResponse) {\n                    if (!v.$resolved && !v.$promise.isResolved()) {\n                        v.$promise.then((this as VueItem).$forceUpdate.bind(this));\n                    }\n                }\n            }\n\n            if ((this as VueItem).component) {\n                setupBinding((this as VueItem).component.$props[key]);\n            }\n\n            const getter = () => {\n                return (this as VueItem).component.$props[key];\n            };\n            const setter = (v) => {\n                // The new decorators changed property initialization from pre-constructor to post-constructor.\n                // So subclasses that defines a new property will \"set\" the value to undefined.\n                // Unfortunately that means we need to ignore all undefined values since it's not possible to tell\n                // when a class is done initializing.\n                if (v === undefined) {\n                    return;\n                }\n\n                // Can't directly set props, v-model + emit should update the value correctly\n                // this.component.$props[key] = v;\n\n                setupBinding(v);\n\n                // Two way bindings are expensive so lets only allow it if its explicitly set\n                if (data?.emit) {\n                    // Emit the change so anything that's watching with v-model:prop_name will update\n                    // https://v3.vuejs.org/guide/component-custom-events.html#v-model-arguments\n                    (this as VueItem).component.$emit(`update:${key}`, v);\n                }\n            };\n\n            Object.defineProperty(this, key, {\n                get: getter,\n                set: setter,\n                enumerable: false,\n                configurable: true\n            });\n            // Prevents memory leaks that would keep a reference to the controller\n            (this as VueItem).bind('$destroy', () => {\n                delete this[key];\n            }, this);\n        })\n    }\n}\n\n// Provides access to the data in the html\nexport function data(config?: DataItem) {\n    return function(nothing: any, context: ClassFieldDecoratorContext) {\n        const key = context.name as string;\n        if (key == 'data') {\n            // This will cause the component to throw an exception and brick the component\n            console.error('A @data binding was set for the reserved keyword \"data\".');\n            return;\n        }\n        if (context.metadata) {\n            context.metadata[context.name] = {\n                type: 'data'\n            }\n            if (config && config.ref) {\n                context.metadata[context.name]['ref'] = config.ref;\n            }\n        }\n\n        context.addInitializer(function() {\n            // We are overriding the variable and wrapping a getter/setter so we need to save the value that's set\n            // and store it again after replacing the variable\n            const current_value = this[key];\n            const ref_action: RefAction = this.constructor[metadata()][key]['ref'];\n\n            const getter = () => {\n                return (this as VueItem).$data[key];\n            };\n            const setter = (v) => {\n                /*\n                    Vue can have syncing issues with complex objects. If we still want to use APIResponse or other\n                    complex objects in $data we need to notify vue when a update was made without it knowing.\n                    To do this call $forceUpdate on a trigger. It will force a rerender of everything in the\n                    component it and all of its children. Its inefficient and not the \"vue\" way of doing things\n                    but not being able to use model or api response objects is a huge drawback that I would like\n                    to avoid.\n                    Update:\n                    Look into wrapping object with reactive instead so it only updates that object\n                    https://v3.vuejs.org/guide/reactivity.html#proxied-objects\n                 */\n                if (v instanceof APIResponse) {\n                    if (!v.$resolved && !v.$promise.isResolved()) {\n                        v.$promise.then(() => {\n                            (this as VueItem).trigger('sync');\n                            (this as VueItem).component?.$forceUpdate();\n                        })\n                    }\n                }\n\n                if (v instanceof Model) {\n                    if (!v.$resolved && !v.$promise.isResolved()) {\n                        v.$promise.then(() => {\n                            (this as VueItem).$forceUpdate();\n                            (this as VueItem).trigger('sync');\n                            (this as VueItem).$data[key] = this[key];\n                        });\n                    }\n                }\n\n                if (v instanceof EventDispatcher) {\n                    v.bind('sync', () => {\n                        (this as VueItem).trigger('sync');\n                        (this as VueItem).component.$forceUpdate();\n                    }, this);\n                    // Prevents memory leaks that would keep a reference to the controller\n                    (this as VueItem).once('$destroy', () => {\n                        v.unbindWithContext('sync', this);\n                    }, this);\n                }\n\n                if (ref_action) {\n                    if ((this as VueItem).component.$refs[key]) {\n                        ref_action((this as VueItem).component.$refs[key], (this as VueItem), key);\n                    }\n                }\n\n                (this as VueItem).$data[key] = v;\n            };\n\n            Object.defineProperty(this, key, {\n                get: getter,\n                set: setter,\n                enumerable: false,\n                configurable: true\n            });\n            // Prevents memory leaks that would keep a reference to the controller\n            (this as VueItem).bind('$destroy', () => {\n                delete this[key];\n            }, this);\n\n            // Store the value now that we have it\n            this[key] = current_value;\n        })\n    };\n}\n\n// Provides access to the method in the html\nexport function method() {\n    return function(func: any, context: ClassMethodDecoratorContext) {\n        if (context.metadata) {\n            context.metadata[context.name] = {\n                type: 'method'\n            }\n        }\n    }\n}\n\n// Provides access to the computed variable in the html\nexport function computed() {\n    return function(func: any, context: ClassGetterDecoratorContext | ClassSetterDecoratorContext | ClassMethodDecoratorContext) {\n        if (context.metadata) {\n            context.metadata[context.name] = {\n                type: 'computed'\n            }\n        }\n    }\n}\n\n\nexport default abstract class VueComponent extends VueItem {\n    static $inject = [];\n\n    protected constructor(component, ...services) {\n        super();\n\n        this.component = component;\n    }\n}\n","import {Component, DebuggerEvent} from 'vue';\nimport * as Sentry from '@sentry/browser';\nimport VueMixin from './VueMixin';\nimport {Services} from '../services/Services';\nimport {EventDispatcher} from '../utils/EventDispatcher';\nimport {metadata} from \"../utils/metadata\";\n\nexport function captureVueException(err: unknown, instance: any, info: string): void {\n    const component = instance?.$options?.name || instance?.$options?.__name || 'unknown';\n    Sentry.captureException(err, {\n        tags: {\n            'vue.component': component,\n            'vue.error_source': String(info),\n        },\n        contexts: {\n            vue: {\n                component,\n                error_source: info,\n                controller: instance?.ctrl?.constructor?.name,\n            },\n        },\n    });\n}\n\nexport interface PropItem {\n    name?: string;\n    emit?: boolean;\n    watch?: boolean;\n}\n\nexport type RefAction = (el: HTMLElement, scope: VueItem, key: string) => void;\n\nexport interface DataItem {\n    ref?: RefAction\n}\n\nexport default abstract class VueItem extends EventDispatcher {\n    /*\n      The component instance that this object is linked to.\n     */\n    component: any;\n\n    /*\n      Vue <slot> does not sync correctly when the parent element updates data outside the vue reactivity system (Model, APIResponse, ect.).\n      Calling $forceUpdate on the parent function will not update the slot content.\n      We have to use the private internal vue api to create a workaround to sync changes correctly.\n     */\n    protected SLOT_SYNC: boolean = false;\n\n    /*\n      A list/hash of attributes that are exposed to accept data from the parent component. It has an Array-based simple\n      syntax and an alternative Object-based syntax that allows advanced configurations such as type checking, custom\n      validation and default values.\n     */\n    static class_props_list: PropItem[] = [];\n\n    /*\n      A list of function names to use with the vue computed, methods and data. The names provided in these will\n      setup a binding to the controller.\n     */\n    static emits_list: string[] = [];\n\n    static get field_map() {\n        if (this.hasOwnProperty('cached_field_map')) {\n            return this['cached_field_map'];\n        }\n\n        let current = this[metadata()];\n        let data = {};\n        while (current) {\n            data = {...current, ...data};\n            current = Object.getPrototypeOf(current)\n        }\n        this['cached_field_map'] = data;\n        return data;\n    }\n\n    static get methods_list(): string[] {\n        let fields = this.field_map;\n        return Object.keys(fields).filter(v => fields[v].type == 'method');\n    }\n\n    static get computed_list(): string[] {\n        let fields = this.field_map;\n        return Object.keys(fields).filter(v => fields[v].type == 'computed');\n    }\n\n    static get bound_data(): string[] {\n        let fields = this.field_map;\n        return Object.keys(fields).filter(v => fields[v].type == 'data');\n    }\n\n    static get bound_ref_data(): {[key: string]: RefAction} {\n        let fields = this.field_map;\n        let keys = Object.keys(fields).filter(v => fields[v].ref);\n        let mapped = {};\n        for (const key of keys) {\n            mapped[key] = fields[key].ref;\n        }\n        return mapped;\n    }\n\n    static get props_list(): PropItem[] {\n        let fields = this.field_map;\n        return Object.keys(fields).filter(v => fields[v].type == 'prop').map(v => {return {name: v, ...fields[v].config}});\n    }\n\n    /*\n     Composition / limited multiple inheritance support. This is similar to the vue composition api.\n\n     This allows components to share all the data items and exposes the html to all of the methods, computed items ect.\n     */\n    static mixins: typeof VueMixin[];\n    public mixin_instances = {};\n\n    /*\n        Vue locks down the $data object in development mode until the data function is called so we need to store the\n        data locally until we can give it to vue.\n     */\n    private starting_data_set = {};\n    private data_init: boolean = false;\n\n    /*\n      Called synchronously immediately after the instance has been initialized, before data observation and\n      event/watcher setup.\n     */\n    protected constructor() {\n        super();\n\n        if ((this.constructor as any).mixins) {\n            for (const mixin_class of (this.constructor as any).mixins) {\n                this.mixin_instances[mixin_class] = new mixin_class(this, this.component, ...Services.getList(mixin_class.$inject))\n            }\n        }\n    }\n\n    findFunctionInstance(name) {\n        if (typeof this[name] === 'function') {\n            return this;\n        }\n\n        for (const mixin of Object.values<VueMixin>(this.mixin_instances)) {\n            let instance_check = mixin.findFunctionInstance(name);\n            if (instance_check) {\n                return instance_check;\n            }\n        }\n\n        return null;\n    }\n\n\n    /*\n      Called synchronously immediately after the instance has been initialized, before data observation and\n      event/watcher setup.\n     */\n    public beforeCreate() {\n        for (const mixin of Object.values<VueMixin>(this.mixin_instances)) {\n            mixin.beforeCreate();\n        }\n    }\n\n    /*\n      The function that returns a data object for the component instance. In data, we don't recommend to observe objects\n      with their own stateful behavior like browser API objects and prototype properties. A good idea would be to have\n      here just a plain object that represents component data.\n\n      Once observed, you can no longer add reactive properties to the root data object. It is therefore recommended to\n      declare all root-level reactive properties upfront, before creating the instance.\n\n      After the instance is created, the original data object can be accessed as vm.$data. The component instance also\n      proxies all the properties found on the data object, so vm.a will be equivalent to vm.$data.a.\n      Properties that start with _ or $ will not be proxied on the component instance because they may conflict with\n      Vue's internal properties and API methods. You will have to access them as vm.$data._property.\n     */\n    public data(): object {\n        this.data_init = true;\n\n        let starting_data = this.starting_data_set;\n\n        // No longer need the starting data set, it will be transferred to the vue component\n        this.starting_data_set = null;\n\n        for (const mixin of Object.values<VueMixin>(this.mixin_instances)) {\n            if (!mixin.component) {\n                mixin.component = this.component;\n            }\n\n            starting_data = {...mixin.data(), ...starting_data}\n        }\n        \n        return starting_data;\n    }\n\n    /*\n      Called synchronously after the instance is created. At this stage, the instance has finished processing the\n      options which means the following have been set up: data observation, computed properties, methods, watch/event\n      callbacks. However, the mounting phase has not been started, and the $el property will not be available yet.\n     */\n    public created(): void {\n        for (const mixin of Object.values<VueMixin>(this.mixin_instances)) {\n            mixin.created();\n        }\n    }\n\n    /*\n      Called right before the mounting begins: the render function is about to be called for the first time.\n     */\n    public beforeMount() {\n        for (const mixin of Object.values<VueMixin>(this.mixin_instances)) {\n            mixin.beforeMount();\n        }\n\n        //\n        if (this.SLOT_SYNC) {\n            // DANGER ZONE: This uses the private internal vue api to fix issues with the <slot> feature not syncing correctly when\n            // data is updated outside the vue lifecycle. The $forceUpdate() function does not update the slot data so we have to hack it.\n            // This feature is opt-in only and may break at any time.\n            let parent_controller = this.component.$?.parent?.ctx?.ctrl;\n            if (parent_controller) {\n                parent_controller.bind('sync', () => {\n                    this.component.$forceUpdate();\n                }, this);\n            }\n            else {\n                console.warn('Automatic slot syncing disabled - the internal vue api has changed or is not available.');\n            }\n        }\n    }\n\n    /*\n      Called after the instance has been mounted, where element, passed to Vue.createApp({}).mount() is replaced by\n      the newly created vm.$el. If the root instance is mounted to an in-document element, vm.$el will also be\n      in-document when mounted is called.\n      Note that mounted does not guarantee that all child components have also been mounted. If you want to wait\n      until the entire view has been rendered, you can use vm.$nextTick inside of\n     */\n    public mounted() {\n        for (const mixin of Object.values<VueMixin>(this.mixin_instances)) {\n            mixin.mounted();\n        }\n    }\n\n    /*\n      Called when data changes, before the DOM is patched. This is a good place to access the existing DOM before an\n      update, e.g. to remove manually added event listeners.\n      This hook is not called during server-side rendering, because only the initial render is performed server-side.\n     */\n    public beforeUpdate() {\n        for (const mixin of Object.values<VueMixin>(this.mixin_instances)) {\n            mixin.beforeUpdate();\n        }\n    }\n\n    /*\n    Called after a data change causes the virtual DOM to be re-rendered and patched.\n    The component's DOM will have been updated when this hook is called, so you can perform DOM-dependent operations\n    here. However, in most cases you should avoid changing state inside the hook. To react to state changes, it's\n    usually better to use a computed property or watcher instead.\n    Note that updated does not guarantee that all child components have also been re-rendered. If you want to wait\n    until the entire view has been re-rendered, you can use vm.$nextTick inside of updated\n    Example:\n    updated() {\n      this.$nextTick(function () {\n        // Code that will run only after the\n        // entire view has been re-rendered\n      })\n    }\n     */\n    public updated() {\n        for (const mixin of Object.values<VueMixin>(this.mixin_instances)) {\n            mixin.updated();\n        }\n    }\n\n    /*\n      Called when a kept-alive component is activated.\n     */\n    public activated() {\n        for (const mixin of Object.values<VueMixin>(this.mixin_instances)) {\n            mixin.activated();\n        }\n    }\n\n    /*\n      Called when a kept-alive component is deactivated.\n     */\n    public deactivated() {\n        for (const mixin of Object.values<VueMixin>(this.mixin_instances)) {\n            mixin.deactivated();\n        }\n    }\n\n    /*\n      Called right before a component instance is unmounted. At this stage the instance is still fully functional.\n     */\n    public beforeUnmount() {\n        for (const mixin of Object.values<VueMixin>(this.mixin_instances)) {\n            mixin.beforeUnmount();\n        }\n    }\n\n    /*\n      Called after a component instance has been unmounted. When this hook is called, all directives of the\n      component instance have been unbound, all event listeners have been removed, and all child component\n      instance have also been unmounted.\n\n      This will help clean up all remaining references to this component that would keep it in memory.\n     */\n    public unmounted() {\n        // Unbinds all data, methods, computed and other redirected variables/functions\n        this.trigger('$destroy');\n\n        for (const mixin of Object.values<VueMixin>(this.mixin_instances)) {\n            mixin.unmounted();\n        }\n\n        // Remove the reference to vue so it can be garvable collected\n        this.component = null;\n\n        // Clear out all stored events\n        this.clearAllEvents();\n\n        // Flag this component as destroyed and all event calls with this reference should be discarded\n        this.$destroyed = true;\n    }\n\n    /*\n      Called when an error from any descendent component is captured. The hook receives three arguments: the error,\n      the component instance that triggered the error, and a string containing information on where the error was\n      captured. The hook can return false to stop the error from propagating further.\n      Error Propagation Rules:\n      By default, all errors are still sent to the global config.errorHandler if it is defined, so that these errors\n      can still be reported to an analytics service in a single place.\n      If multiple errorCaptured hooks exist on a component's inheritance chain or parent chain, all of them will be\n      invoked on the same error.\n      If the errorCaptured hook itself throws an error, both this error and the original captured error are sent to\n      the global config.errorHandler.\n      An errorCaptured hook can return false to prevent the error from propagating further. This is essentially\n      saying \"this error has been handled and should be ignored.\" It will prevent any additional errorCaptured\n      hooks or the global config.errorHandler from being invoked for this error.\n     */\n    public errorCaptured(err: Error, instance: Component|any, info: string): boolean | void {\n        console.error(err);\n        captureVueException(err, instance, info);\n        return true;\n    }\n\n    /*\n      Called when virtual DOM re-render is tracked. The hook receives a debugger event as an argument. This event\n      tells you what operation tracked the component and the target object and key of that operation.\n     */\n    public renderTracked(e: DebuggerEvent): void {\n    };\n\n    /*\n      Called when virtual DOM re-render is triggered.Similarly to renderTracked, receives a debugger event as an\n      argument. This event tells you what operation triggered the re-rendering and the target object and key of\n      that operation.\n     */\n    public renderTriggered(e: DebuggerEvent): void {\n    };\n\n    /*\n      The data object that the component instance is observing. The component instance proxies access to the properties\n      on its data object.\n     */\n    get $data() {\n        if (this.data_init) {\n            return this.component.$data;\n        }\n        else {\n            return this.starting_data_set;\n        }\n    }\n\n    get $props() {\n        return this.component.$props;\n    }\n\n    get $el() {\n        return this.component.$el;\n    }\n\n    get $options() {\n        return this.component.$options;\n    }\n\n    get $parent() {\n        return this.component.$parent;\n    }\n\n    get $root() {\n        return this.component.$root;\n    }\n\n    get $slots() {\n        return this.component.$slots;\n    }\n\n    get $refs() {\n        return this.component.$refs;\n    }\n\n    get $attrs() {\n        return this.component.$attrs;\n    }\n\n    /*\n      Watch a reactive property or a computed function on the component instance for changes. The callback gets\n      called with the new value and the old value for the given property. We can only pass top-level data, prop,\n      or computed property name as a string. For more complex expressions or nested properties, use a function\n      instead.\n     */\n    get $watch() {\n        return this.component.$watch;\n    }\n\n    /*\n      Trigger an event on the current instance. Any additional arguments will be passed into the listener's callback function.\n     */\n    get $emit() {\n        return this.component.$emit;\n    }\n\n    /*\n      Force the component instance to re-render. Note it does not affect all child components, only the instance itself\n      and child components with inserted slot content.\n     */\n    get $forceUpdate() {\n        return this.component.$forceUpdate;\n    }\n\n    /*\n      Defer the callback to be executed after the next DOM update cycle. Use it immediately after you've changed some\n      data to wait for the DOM update. This is the same as the global nextTick, except that the callback's this context\n      is automatically bound to the instance calling this method.\n     */\n    get $nextTick() {\n        return this.component.$nextTick;\n    }\n}\n","import VueItem from './VueItem';\nimport VueComponent from './VueComponent';\n\nexport default class VueMixin extends VueItem {\n    parent: VueItem;\n    constructor(parent) {\n        super();\n        this.parent = parent;\n    }\n\n    bindComponent(component) {\n        this.component = component;\n    }\n}","import MessageList from '../../utils/MessageList';\nimport {html} from './ErrorList.html';\nimport VueComponent, {computed, prop} from '../../adapters/VueComponent';\nimport IVueComponent from '../../adapters/IVueComponent';\n\nexport class ErrorListController extends VueComponent {\n    /*\n        Deprecated: Please use MessageList / <message-list> instead.\n     */\n    @prop()\n    errors: MessageList;\n\n    @prop()\n    field: string;\n\n    @computed()\n    filtered_errors(): string[] {\n        if (!this.errors) {\n            return [];\n        }\n\n        if (!this.field) {\n            console.warn(`Error list field is not defined`);\n            return [];\n        }\n\n        let errors = this.errors;\n        if (!(this.errors instanceof MessageList)) {\n            // A MessageList object should be used for error message handling.\n            // There is some old code somewhere that isn't using it so lets try to convert it to the correct type.\n            errors = new MessageList(this.errors);\n        }\n\n        let merged = []\n        for (const field of this.field.split(',')) {\n            merged = [...new Set([...merged, ...(errors.get(field) || [])])]\n        }\n\n        return merged\n    }\n}\n\nexport default function ErrorList(): IVueComponent {\n    return {\n        controller: ErrorListController,\n        template: html,\n        tag: 'error-list'\n    };\n}\n","export const html:string = `\n<div class=\"flex-left column stretch spacing-xs\" v-if=\"filtered_errors.length > 0\">\n    <div v-for=\"error in filtered_errors\" class=\"flex-left-center no-wrap spacing-sm text-xs error-message\">\n        <img :src=\"$filters.static('img/icons/error.svg')\" alt=\"Error\">\n        {{ error }}\n    </div>\n</div>\n`;\n","import {html} from './GenericDropdown.html';\nimport VueComponent, {computed, data, method, prop} from '../../adapters/VueComponent';\nimport IVueComponent from '../../adapters/IVueComponent';\nimport {mobileScreenSize} from '../../utils/utils';\nimport MobileMixin from '../../mixins/MobileMixin';\n\nexport class GenericDropdownController extends VueComponent {\n    static override mixins = [MobileMixin]\n\n    @prop({\n        watch: true\n    })\n    items: any[];\n\n    @prop({\n        emit: true,\n        watch: true\n    })\n    selected: any;\n\n    @prop()\n    none: string;\n\n    @prop()\n    triggerFunction: (item: any, trigger_scope?: any) => void;\n\n    @prop()\n    hideNone: boolean;\n\n    @prop()\n    placeholder: string;\n\n    @prop()\n    label: string;\n\n    @prop()\n    nameField: string;\n\n    @prop()\n    field: any;\n\n    @prop()\n    nameFunction: (any) => string;\n\n    @prop()\n    search: boolean;\n\n    @data()\n    query: string;\n\n    @data()\n    noneLast: boolean;\n\n    @prop()\n    nameFromItems: boolean;\n\n    @prop()\n    searchType: string;\n\n    @prop()\n    autocomplete: string;\n\n    @data()\n    autocomplete_value: string;\n\n    @data()\n    selection_index: number;\n\n    @prop()\n    nonePlaceholder: boolean;\n\n    @prop()\n    test;\n    \n    constructor(component) {\n        super(component);\n\n        // For some reason v-model with <select> causes an infinite loop.\n        // The only way around this that I could find was to track with the index and get the element from the list.\n        this.bind('change:selected', this.setSelectionIndex.bind(this), this);\n        this.bind('change:items', this.setSelectionIndex.bind(this), this);\n    }\n\n    setSelectionIndex() {\n        if (this.items) {\n            if (this.field !== undefined) {\n                this.selection_index = this.items.indexOf(this.items.find(v => v[this.field] == this.selected));\n            }\n            else {\n                this.selection_index = this.items.indexOf(this.selected);\n            }\n        }\n    }\n\n    override mounted() {\n        super.mounted();\n        this.setSelectionIndex();\n\n        if (this.test) {\n            console.log(this);\n        }\n    }\n\n    @method()\n    anyVisible() {\n        if (!this.search || !this.query) {\n            return true;\n        }\n\n        return !!this.items.find(v => this.display(v));\n    }\n\n    @method()\n    display(item) {\n        if (!this.search || !this.query) {\n            return true;\n        }\n\n        let name = this.getSelectedName(item);\n\n        if (this.searchType == 'contains') {\n            return name && name.toLowerCase().indexOf(this.query.toLowerCase()) != -1;\n        }\n        else {\n            return name && name.toLowerCase().indexOf(this.query.toLowerCase()) === 0;\n        }\n    }\n\n    get nameFieldOrDefault(): string {\n        return this.nameField || 'name';\n    }\n\n    @method()\n    public getSelectedName(item: any) {\n        if (this.nameFunction) {\n            return this.nameFunction(item);\n        }\n\n        if (this.selected == null && this.items && this.field) {\n            for (const value of this.items) {\n                if (value[this.field] == null) {\n                    return this.getName(value);\n                }\n            }\n        }\n\n        // Try to match a selected string value to the key value of a object in the list\n        if (this.selected != null && this.items && this.items.length > 0 && this.field) {\n            if (typeof item == \"string\") {\n                for (const value of this.items) {\n                    if (typeof value[this.field] == \"string\" && value[this.field].toLowerCase() === item.toLowerCase()) {\n                        return this.getName(value);\n                    }\n                }\n            }\n            else {\n                for (const value of this.items) {\n                    if (value[this.field] === item) {\n                        return this.getName(value);\n                    }\n                }\n            }\n        }\n\n        return this.getName(item);\n    }\n\n    @method()\n    public getName(item: any, short=false): string {\n        if (item == null) {\n            return this.none || this.placeholder || 'None';\n        }\n\n        if (this.nameFunction && typeof this.nameFunction == 'function') {\n            return this.nameFunction(item);\n        }\n\n        if (this.nameFromItems && typeof item != 'object') {\n            for (const i of this.items) {\n                if (i.value == item) {\n                    item = i;\n                }\n            }\n        }\n\n        const type = typeof item;\n        switch (type) {\n            case 'object':\n                if (short && !this.nameField && item['short_name']) {\n                    return item['short_name'];\n                }\n                else {\n                    return item[this.nameFieldOrDefault];\n                }\n\n            case 'number':\n                return item + '';\n\n            case 'string':\n                return item;\n\n            default:\n                return item;\n        }\n    }\n\n    @method()\n    public select(item: any): void {\n        let old = this.selected;\n        if (this.field == null) {\n            this.selected = item;\n        }\n        else {\n            this.selected = item[this.field];\n        }\n\n        if (this.triggerFunction) {\n            this.triggerFunction(item, old);\n        }\n\n        this.query = '';\n    }\n\n    @method()\n    public isSelected(item: any): boolean {\n        return this.isItemSelected(this.selected, item);\n    }\n\n    isItemSelected(selected, item) {\n        if (selected == null && item == null) {\n            return true;\n        }\n\n        if (!selected) {\n            return false;\n        }\n\n        if (selected.equals) {\n            return selected.equals(item);\n        }\n        else if (this.field == null || !item) {\n            return selected === item;\n        }\n        else if (selected[this.field]) {\n            return selected[this.field] === item[this.field];\n        }\n        else {\n            return selected === item[this.field];\n        }\n    }\n\n    @method()\n    focusFirstListElement($event) {\n        $event.preventDefault();\n\n        let list_element = this.$el.parentElement.querySelector('ul');\n        if (list_element && list_element.children.length > 0) {\n            let next = list_element.children[0];\n            while (next) {\n                if (next.style.display == 'none') {\n                    next = next.nextElementSibling;\n                }\n                else {\n                    break;\n                }\n            }\n\n            next?.focus({\n                preventScroll: true\n            });\n        }\n    }\n\n    @method()\n    tabUp($event) {\n        $event.preventDefault();\n        if (this.selection_index > 0) {\n            this.select(this.items[this.selection_index - 1]);\n        }\n    }\n\n    @method()\n    tabDown($event) {\n        $event.preventDefault();\n        if (this.selection_index < this.items.length - 1) {\n            this.select(this.items[this.selection_index + 1]);\n        }\n    }\n\n    @method()\n    close() {\n        // This should normally be taken care of by the v-dropdown but in case we need to close it with\n        // other accessibility functions\n        if (this.dropdownRoot()?.classList.contains('open')) {\n            this.dropdownRoot()?.classList.remove('open');\n        }\n    }\n\n    @method()\n    open() {\n        if (!this.dropdownRoot()?.classList.contains('open')) {\n            this.dropdownRoot()?.classList.add('open');\n        }\n    }\n\n    dropdownRoot() {\n        return this.$el.parentElement.querySelector('.generic-dropdown');\n    }\n\n    @method()\n    autofillFromSelected($event) {\n        $event.preventDefault();\n\n        if (!this.query) {\n            return;\n        }\n\n        for (const item of this.items) {\n            if (this.display(item)) {\n                this.select(item);\n                this.close();\n                return;\n            }\n        }\n    }\n\n    @method()\n    checkAutocomplete($event) {\n        // This is automatically filled in by the browser and will not match the selection list.\n        // We have to use z-input + position absolute to hide the element because the browser will\n        // not autocomplete display none inputs.\n\n        if (!this.autocomplete_value) {\n            return;\n        }\n\n        for (const item of this.items) {\n            let name = this.getName(item);\n            if (name) {\n                if (name.toLowerCase() == this.autocomplete_value.toLowerCase()) {\n                    this.select(item);\n                    return;\n                }\n            }\n        }\n    }\n}\n\nexport default function GenericDropdown(): IVueComponent {\n    return {\n        controller: GenericDropdownController,\n        template: html,\n        tag: 'generic-dropdown'\n    };\n}\n","export const html: string = `\n<div class=\"dropdown generic-dropdown desktop-only\" v-if=\"!mobile\" v-dropdown>\n    <button class=\"btn-base dropdown-label\" :class=\"(placeholder || (none && nonePlaceholder)) && !selected ? 'text-weak' : '' \" type=\"button\">\n        {{ search ? '' : getSelectedName(selected) }}\n        \n        <input type=\"text\" \n            class=\"dropdown-search-input\" \n            v-model=\"query\" \n            :placeholder=\"getSelectedName(selected)\"\n            :aria-label=\"label || placeholder || 'Search options'\"\n            @keydown.down=\"focusFirstListElement($event)\"  \n            @keydown.enter=\"autofillFromSelected($event)\" \n            @click=\"open()\"\n            v-if=\"search\">\n           \n        <input type=\"text\" \n            class=\"autocomplete-element-handler\" \n            v-model=\"autocomplete_value\"  \n            :autocomplete=\"autocomplete\" \n            v-if=\"autocomplete\" \n            aria-hidden=\"true\"\n            @change=\"checkAutocomplete($event)\">\n    </button>\n    <ul class=\"dropdown-list shadow-lg flex-left column no-wrap stretch spacing-xs scrollbar\" role=\"listbox\" :aria-label=\"label || placeholder || 'Options'\" @keydown.up=\"tabUp($event)\"  @keydown.down=\"tabDown($event)\" @keydown.esc=\"close()\" @keydown.tab=\"close()\" @keydown.enter=\"close()\" tabindex=\"-1\">\n        <li v-if=\"none != null && !hideNone && !noneLast\" @click=\"select(null)\" :class=\"{'selected' : isSelected(null)}\" role=\"option\" aria-label=\"Select a value\">\n            {{ getName(null) }}\n        </li>\n        <li v-for=\"item in items\"   \n            role=\"option\"  \n            :class=\"{'selected' : isSelected(item)}\"\n            @click=\"select(item)\"\n            @keydown.enter=\"select(item); close();\" \n            @keydown.up=\"tabUp($event)\" \n            @keydown.down=\"tabDown($event)\" \n            v-show=\"display(item)\"\n            :aria-selected=\"isSelected(item) ? 'true' : 'false'\">\n            {{ getName(item) }}\n        </li>\n        <li v-if=\"none != null && !hideNone && noneLast\" @click=\"select(null)\" :class=\"{'selected' : isSelected(null)}\" role=\"option\">\n            {{ getName(null) }}\n        </li>\n        <li v-show=\"items && items.length > 0 && !anyVisible()\" class=\"no-results-warning\">\n            No Results Found\n        </li>\n    </ul>\n</div>\n<select v-model=\"selection_index\" @change=\"select(items[selection_index])\" class=\"mobile-only\" v-if=\"mobile\" :aria-label=\"label || placeholder || 'Options'\">\n    <option v-if=\"none != null && !hideNone && !noneLast\" :value=\"-1\">\n        {{ getName(null) }}\n    </option>\n    <option :value=\"index\" v-for=\"(item, index) in items\">\n        {{ getName(item) }}\n    </option>\n    <option :value=\"undefined\" v-if=\"items && items.length > 0 && !anyVisible()\">\n        No Results Founds\n    </option>\n</select>\n`;\n","import VueComponent, {data, method, prop} from '../../adapters/VueComponent';\nimport IVueComponent from '../../adapters/IVueComponent';\nimport {html} from './Paginator.html';\n\nexport class PaginatorPage {\n    private _url: string;\n    public page: number;\n    public showFirst: boolean;\n    constructor(url: string, page: number, showFirst?: boolean) {\n        this._url = url;\n        this.page = Number(page);\n        this.showFirst = showFirst;\n    }\n\n    get url(): string {\n        if (!this._url) {\n            return;\n        }\n\n        if (this._url.indexOf(':page') === -1) {\n            const parts: string[] = this._url.split('?');\n            const params: string[] = [];\n            if (parts.length > 1) {\n                for (const param of parts[1].split('&')) {\n                    if (param.split('=')[0] === 'page') continue;\n                    params.push(param);\n                }\n            }\n            params.push(`page=${this.page}`);\n\n            return `${parts[0]}?${params.join('&')}`;\n        } else {\n            return this._url\n                .replace('%3A', ':')\n                .replace(':page/', `${this.page}/`)\n                .replace('=:page', `=${this.page}`);\n        }\n\n    }\n}\n\nexport class PaginatorController extends VueComponent {\n    @prop()\n    page: number;\n\n    @prop()\n    url: string;\n\n    @prop()\n    limit: number;\n\n    @prop({\n        watch: true\n    })\n    total: number;\n\n    @prop()\n    showFirst: boolean;\n\n    @prop()\n    change: ($event, page: PaginatorPage) => void;\n\n    @prop()\n    limits: any;\n\n    @prop()\n    jumpto: any;\n\n    @prop()\n    key: string;\n\n    @prop()\n    small: boolean;\n\n    /**\n     * Should we show the previous link button? This is false we're on the\n     * first page.\n     */\n    @data()\n    public showPrevious: boolean;\n\n    /**\n     * Should we show the next link button? This is false when we're on the\n     * last page.\n     */\n    @data()\n    public showNext: boolean;\n\n    /**\n     * PaginatorPage array containing the numbered pages (i.e. 1,2,3,4)\n     */\n    @data()\n    public pages: PaginatorPage[] = [];\n\n    /**\n     * Jump to first page link\n     */\n    @data()\n    public first: PaginatorPage;\n\n    /**\n     * Jump to last page link\n     */\n    @data()\n    public last: PaginatorPage;\n\n    /**\n     * Link to previous page\n     */\n    @data()\n    public previous: PaginatorPage;\n\n    /**\n     * Link to next page\n     */\n    @data()\n    public next: PaginatorPage;\n\n    @data()\n    pageCount: number;\n\n    constructor(\n        component\n    ) {\n        super(component);\n        this.createPages();\n\n        this.bind('change:props', this.createPages.bind(this), this);\n    }\n\n    reset() {\n        this.pages = [];\n    }\n\n    changePage($event, pageTo: PaginatorPage) {\n        if (this.change) {\n            $event.preventDefault();\n\n            this.change($event, pageTo);\n            this.page = pageTo.page;\n            this.createPages();\n        }\n    }\n\n    getCurrentPage() {\n        let current = null;\n        this.pages.some((page) => {\n            if (page.page == this.page_value) {\n                current = page;\n                return true;\n            }\n            return false;\n        });\n        return current;\n    }\n\n    createPages() {\n        if (!this.pageCount && this.total && this.limit) {\n            this.pageCount = Math.ceil(this.total / this.limit);\n        }\n\n        if (!this.isValid())\n            return;\n\n        this.showPrevious = this.page_value > 1;\n        this.showNext = this.page_value < this.pageCount;\n\n        this.first = new PaginatorPage(this.url, 1, this.showFirst);\n        this.last = new PaginatorPage(this.url, this.pageCount, this.showFirst);\n\n        if (this.showPrevious) {\n            this.previous = new PaginatorPage(this.url, this.page_value - 1, this.showFirst);\n        }\n\n        if (this.showNext) {\n            this.next = new PaginatorPage(this.url, this.page_value + 1, this.showFirst);\n        }\n\n        this.pages = [];\n        for (let i = this.page_value - 3; i < this.page_value + 3; i++) {\n            if (i > 0 && i <= this.pageCount) {\n                this.pages.push(new PaginatorPage(this.url, i, this.showFirst));\n            }\n        }\n    }\n\n    /**\n     * Can we build the paginator?\n     * @returns {boolean}\n     */\n    @method()\n    isValid(): boolean {\n        return isFinite(this.page_value) &&\n            this.page_value != null &&\n            isFinite(this.pageCount) &&\n            this.pageCount != null &&\n            !!this.url;\n    }\n\n    addDefaultLimit() {\n        if (!this.limits)\n            this.limits = [];\n\n        if (this.limit > 0 && this.limits.indexOf(this.limit) === -1) {\n            this.limits.push(this.limit);\n        }\n        this.limits.sort((a, b) => {\n            return a > b ? 1 : -1;\n        });\n    }\n\n    get page_value() {\n        return Number(this.page);\n    }\n}\n\nexport default function Paginator(): IVueComponent {\n    return {\n        controller: PaginatorController,\n        template: html,\n        tag: 'paginator'\n    }\n};","export const html: string = `\n<nav v-show=\"pages && pages.length > 1 && isValid()\" class=\"pagination toggle-group no-print\">\n    <a class=\"flat-link spacing-xs\" :href=\"previous.url\" aria-label=\"Previous Page\" v-if=\"showPrevious\">\n        <svg width=\"21\" height=\"20\" viewBox=\"0 0 21 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n            <path d=\"M16.3333 9.99984H4.66667M4.66667 9.99984L10.5 15.8332M4.66667 9.99984L10.5 4.1665\"\n                  stroke=\"var(--text-strong, #101828)\" stroke-width=\"1.67\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n        </svg>\n        <span class=\"desktop-only\" v-if=\"!small\">Previous</span>\n    </a>\n    \n    <a class=\"flat-link\" v-for=\"p in pages\" :class=\"{active: page == p.page}\" :href=\"p.url\">{{ p.page }}</a>\n    \n    <a class=\"flat-link spacing-xs\" :href=\"next.url\" aria-label=\"Next Page\" v-if=\"showNext\">\n        <span class=\"desktop-only\" v-if=\"!small\">Next</span>\n        <svg width=\"21\" height=\"20\" viewBox=\"0 0 21 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n            <path d=\"M4.66667 9.99984H16.3333M16.3333 9.99984L10.5 4.1665M16.3333 9.99984L10.5 15.8332\"\n                  stroke=\"var(--text-strong, #101828)\" stroke-width=\"1.67\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n        </svg>\n    </a>\n</nav>\n`;\n","import {html} from './CallbackPaginator.html';\nimport IVueComponent from '../../adapters/IVueComponent';\nimport VueComponent, {computed, method, prop} from '../../adapters/VueComponent';\n\nexport class CallbackPaginatorController extends VueComponent {\n    @prop({\n        emit: true\n    })\n    page;\n\n    @prop()\n    total;\n\n    @prop()\n    limit;\n\n    @prop()\n    callback;\n\n    @prop()\n    small: boolean;\n\n    constructor(c) {\n        super(c);\n    }\n\n    @computed()\n    totalPages() {\n        return Math.ceil(Number(this.total) / Number(this.limit));\n    }\n\n    @method()\n    changePage(pageTo) {\n        this.page = pageTo;\n        if (this.callback) {\n            this.callback(pageTo);\n        }\n        else {\n            throw new Error('Callback Required')\n        }\n    }\n\n    @computed()\n    pages() {\n        let pages = []\n\n        let items = this.small ? 2 : 3;\n\n        let start = Math.max(Number(this.page) - items, 1)\n        let end = Math.min(Number(this.page) + items, this.totalPages());\n\n        for (let i = start; i <= end; i++) {\n            pages.push(i);\n        }\n        return pages;\n    }\n}\n\nexport default function CallbackPaginator(): IVueComponent {\n    return {\n        controller: CallbackPaginatorController,\n        template: html,\n        tag: 'callback-paginator'\n    };\n}\n","export const html:string = `\n\n<nav class=\"pagination toggle-group no-print\" v-if=\"totalPages > 1\">\n    <a v-if=\"page > 1\" @click=\"changePage(page - 1)\" aria-label=\"Previous Page\" class=\"flat-link spacing-xs\">\n        <svg width=\"21\" height=\"20\" viewBox=\"0 0 21 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n            <path d=\"M16.3333 9.99984H4.66667M4.66667 9.99984L10.5 15.8332M4.66667 9.99984L10.5 4.1665\"\n                  stroke=\"var(--text-strong, #101828)\" stroke-width=\"1.67\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n        </svg>\n        <span class=\"desktop-only\" v-if=\"!small\">Previous</span>\n    </a>\n    \n    <a v-for=\"p in pages\" class=\"flat-link\" :class=\"{selected: p == page}\" @click=\"changePage(p)\">{{ p }}</a>\n    \n    <a v-if=\"page < totalPages\" @click=\"changePage(page + 1)\" aria-label=\"Next Page\" class=\"flat-link spacing-xs\">\n        <span class=\"desktop-only\" v-if=\"!small\">Next</span>\n        <svg width=\"21\" height=\"20\" viewBox=\"0 0 21 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n            <path d=\"M4.66667 9.99984H16.3333M16.3333 9.99984L10.5 4.1665M16.3333 9.99984L10.5 15.8332\"\n                  stroke=\"var(--text-strong, #101828)\" stroke-width=\"1.67\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n        </svg>\n    </a>\n</nav>\n`;\n","import {html} from './ColorDropdown.html';\nimport {GenericDropdownController} from '../GenericDropdown/GenericDropdown';\nimport IVueComponent from '../../adapters/IVueComponent';\nimport {data, method, prop} from '../../adapters/VueComponent';\n\nexport class ColorDropdownController extends GenericDropdownController {\n\n    @prop()\n    noneColor;\n\n    @prop()\n    smallColorSquares;\n\n    constructor(component) {\n        super(component);\n    }\n\n\n    public override getName(item: any, short=false): string {\n        if (!item && !this.noneColor) {\n            return 'No Color Selected'\n        }\n\n        return super.getName(item, short);\n    }\n}\n\nexport default function ColorDropdown(): IVueComponent {\n    return {\n        controller: ColorDropdownController,\n        template: html,\n        tag: 'generic-color-dropdown'\n    };\n}\n","export const html: string = `\n<div class=\"dropdown generic-dropdown color-dropdown\" v-dropdown>\n    <button class=\"btn-base dropdown-label\" type=\"button\">\n        <div class=\"flex-left-center spacing-sm no-wrap\">\n            <div class=\"color-circle circle no-shrink\" :style=\"{'background': selected ? selected.background : noneColor, 'background-size': selected && selected.background ? 'cover' : null }\"></div>\n            {{ search ? '' : getSelectedName(selected) }}\n        </div>\n        <input type=\"text\" \n            class=\"dropdown-search-input\" \n            v-model=\"query\" \n            :placeholder=\"getSelectedName(selected)\"  \n            @keydown.enter=\"autofillFromSelected($event)\" \n            @keydown.up=\"tabUp($event)\" \n            @keydown.down=\"tabDown($event)\"\n            v-if=\"search\">\n    </button>\n    <ul class=\"dropdown-list shadow-lg flex-left column stretch no-wrap spacing-xs scrollbar\" role=\"listbox\" @keydown.up=\"tabUp($event)\"  @keydown.down=\"tabDown($event)\" @keydown.esc=\"close()\" @keydown.tab=\"close()\" @keydown.enter=\"close()\" tabindex=\"0\">\n        <li class=\"flex-left-center spacing-sm\" v-if=\"none && !hideNone\" @click=\"select(null)\" :class=\"{selected : isSelected(null)}\" role=\"option\">\n            <div class=\"color-circle circle\" :style=\"{'background': noneColor ? noneColor : 'white'}\"></div>\n            {{ getName(null, true) }}\n        </li>\n        \n        <li class=\"flex-left-center spacing-sm\" v-for=\"item in items\" @click=\"select(item);\" :class=\"{selected : isSelected(item)}\" role=\"option\">\n            <div class=\"color-circle circle\" :style=\"{'background': item.background, 'background-size': item.background ? 'cover' : null }\"></div>\n            {{ getName(item, true) }}\n        </li>\n    </ul>\n</div>\n`;\n","import MessageList from '../../utils/MessageList';\nimport {html} from './MessageList.html';\nimport VueComponent, {computed, method, prop} from '../../adapters/VueComponent';\nimport IVueComponent from '../../adapters/IVueComponent';\nimport {IPromise} from '../../utils/SimplePromise';\n\nexport class MessageListController extends VueComponent {\n    // Fixes issues with the <slot> component not syncing correctly. See note in parent class.\n    override SLOT_SYNC = true;\n\n    @prop()\n    errors: MessageList;\n\n    @prop()\n    warnings: MessageList;\n\n    @prop()\n    successes: MessageList;\n\n    @prop()\n    infos: MessageList;\n\n    @prop()\n    field: string;\n\n    @prop()\n    all: boolean;\n\n    @computed()\n    filtered_errors(): string[] {\n        return this.filteredItems(this.errors);\n    }\n\n    @computed()\n    filtered_warnings(): string[] {\n        return this.filteredItems(this.warnings);\n    }\n\n    @computed()\n    filtered_successes(): string[] {\n        return this.filteredItems(this.successes);\n    }\n\n    @computed()\n    filtered_infos(): string[] {\n        return this.filteredItems(this.infos);\n    }\n\n    @method()\n    hasMessages() {\n        return this.filtered_errors().length > 0 || this.filtered_warnings().length > 0 || this.filtered_successes().length > 0 || this.filtered_infos().length > 0;\n    }\n\n    @method()\n    containerStyling() {\n        if (this.errors && this.filtered_errors().length > 0) {\n            return {\n                'error': true\n            }\n        }\n        if (this.warnings && this.filtered_warnings().length > 0) {\n            return {\n                'warning': true\n            }\n        }\n        if (this.successes && this.filtered_successes().length > 0) {\n            return {\n                'success': true\n            }\n        }\n        if (this.infos && this.filtered_infos().length > 0) {\n            return {\n                'info': true\n            }\n        }\n    }\n\n    keys(): string[] {\n        if (this.all) {\n            let keys = [];\n            if (this.errors) {\n                keys = [...keys, ...this.errors.keys]\n            }\n            if (this.warnings) {\n                keys = [...keys, ...this.warnings.keys]\n            }\n            if (this.infos) {\n                keys = [...keys, ...this.infos.keys]\n            }\n            if (this.successes) {\n                keys = [...keys, ...this.successes.keys]\n            }\n            return keys;\n        }\n        if (this.field) {\n            return String(this.field).split(',')\n        }\n        return [];\n    }\n\n    filteredItems(items: MessageList) {\n        if (!items) {\n            return [];\n        }\n\n        if (!this.field && !this.all) {\n            console.warn(`Error list field is not defined`);\n            return [];\n        }\n\n        if (!(items instanceof MessageList)) {\n            // A MessageList object should be used for error message handling.\n            // There is some old code somewhere that isn't using it so lets try to convert it to the correct type.\n            items = new MessageList(items);\n        }\n\n        let merged = []\n        for (const field of this.keys()) {\n            merged = [...new Set([...merged, ...(items.get(field) || [])])]\n        }\n\n        return merged\n    }\n}\n\nexport default function MessageListComponent(): IVueComponent {\n    return {\n        controller: MessageListController,\n        template: html,\n        tag: 'message-list'\n    };\n}\n","export const html:string = `\n<div class=\"message-list\" :class=\"containerStyling()\">\n    <div class=\"flex-left column stretch spacing-xs\" v-if=\"hasMessages()\">\n        <div v-for=\"item in filtered_errors\" class=\"flex-left-center no-wrap spacing-sm text-xs error-message\">\n            <svg width=\"16\" height=\"16\" viewBox=\"0 0 16 16\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n                <path d=\"M8 5.33331V7.99998M8 10.6666H8.00666M14.6667 7.99998C14.6667 11.6819 11.6819 14.6666 8 14.6666C4.3181 14.6666 1.33333 11.6819 1.33333 7.99998C1.33333 4.31808 4.3181 1.33331 8 1.33331C11.6819 1.33331 14.6667 4.31808 14.6667 7.99998Z\" stroke=\"var(--error-weak, #F04438)\" stroke-width=\"1.33333\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n            </svg>\n            {{ item }}\n        </div>\n        <div v-for=\"item in filtered_warnings\" class=\"flex-left-center no-wrap spacing-sm text-xs warning-message\">\n            <svg width=\"16\" height=\"14\" viewBox=\"0 0 16 14\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n                <path d=\"M7.99983 4.99997V7.66664M7.99983 10.3333H8.0065M7.07671 1.59445L1.59345 11.0655C1.28932 11.5909 1.13725 11.8535 1.15972 12.0691C1.17933 12.2571 1.27784 12.428 1.43075 12.5392C1.60605 12.6666 1.90956 12.6666 2.51658 12.6666H13.4831C14.0901 12.6666 14.3936 12.6666 14.5689 12.5392C14.7218 12.428 14.8203 12.2571 14.8399 12.0691C14.8624 11.8535 14.7103 11.5909 14.4062 11.0655L8.92295 1.59445C8.61991 1.07101 8.46838 0.809288 8.2707 0.721386C8.09826 0.644711 7.9014 0.644711 7.72897 0.721386C7.53128 0.809288 7.37976 1.07101 7.07671 1.59445Z\" stroke=\"var(--warning-weak, #FEC84B)\" stroke-width=\"1.33333\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n            </svg>\n            {{ item }}\n        </div>\n        <div v-for=\"item in filtered_successes\" class=\"flex-left-center no-wrap spacing-sm text-xs success-message\">\n            <svg width=\"16\" height=\"16\" viewBox=\"0 0 16 16\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n                <path d=\"M5 7.99998L7 9.99998L11 5.99998M14.6667 7.99998C14.6667 11.6819 11.6819 14.6666 8 14.6666C4.3181 14.6666 1.33333 11.6819 1.33333 7.99998C1.33333 4.31808 4.3181 1.33331 8 1.33331C11.6819 1.33331 14.6667 4.31808 14.6667 7.99998Z\" stroke=\"var(--success-weak, #75E0A7)\" stroke-width=\"1.33333\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n            </svg>\n            {{ item }}\n        </div>\n        <div v-for=\"item in filtered_infos\" class=\"flex-left-center no-wrap spacing-sm text-xs info-message\">\n            <svg width=\"16\" height=\"16\" viewBox=\"0 0 16 16\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n                <path d=\"M8 10.6666V7.99998M8 5.33331H8.00666M14.6667 7.99998C14.6667 11.6819 11.6819 14.6666 8 14.6666C4.3181 14.6666 1.33333 11.6819 1.33333 7.99998C1.33333 4.31808 4.3181 1.33331 8 1.33331C11.6819 1.33331 14.6667 4.31808 14.6667 7.99998Z\" stroke=\"var(--info-weak, #84CAFF)\" stroke-width=\"1.33333\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n            </svg>\n            {{ item }}\n        </div>\n    </div>\n    <slot></slot>\n</div>\n`;\n","import VueComponent from '../adapters/VueComponent';\n\nexport function FileInputRef(el: HTMLElement, scope: VueComponent, key: string) {\n    /*\n        Vue does not have v-model support for file inputs. In order to get files from the input we have to use the @change function\n        which works for most cases. However, this does not allow us to unset the selected file in case of a network error or\n        validation rejection. If the same file is selected for upload, and the file is not unset from the input, the @change method\n        will not be called which prevents things from working correctly.\n\n        This will be called when the value is set and if its undefined/null, it will unset the value on the dom element.\n     */\n    if (!scope[key]) {\n        (el as HTMLInputElement).value = null;\n    }\n}\n","import VueComponent, {data, method, prop} from '../../adapters/VueComponent';\nimport {eventToFiles} from '../../utils/utils';\nimport {html} from './FileUpload.html';\nimport {uuid4} from '../../utils/uuid';\nimport {Services} from '../../services/Services';\nimport {Http} from '../../services/Http';\nimport {IPromise} from '../../utils/SimplePromise';\nimport {FileInputRef} from '../../utils/Refs';\n\n\nclass FileUploadController extends VueComponent {\n\n    @prop()\n    url: string;\n\n    @prop()\n    formData: (file: File) => FormData;\n\n    @prop()\n    success: (response: any, file?: File) => {};\n\n    @prop()\n    failure: (error: any, file?: File) => {};\n\n    @prop()\n    disableVector: boolean;\n\n    @prop()\n    disableRaster: boolean;\n\n    @prop()\n    allFiles: boolean;\n\n    @prop()\n    hideTypes: boolean;\n\n    // Used when we want to hold onto the file until the user presses some other kind of submit button\n    @prop()\n    delayedSubmission: IPromise<any>;\n\n    @prop()\n    secondary: boolean;\n\n    @prop()\n    directUpload: File;\n\n    @prop()\n    autoReset: boolean;\n\n    @data({\n        ref: FileInputRef\n    })\n    file: File;\n\n    @prop()\n    startingFile;\n\n    @data()\n    uuid;\n\n    @data()\n    percent_loaded: number;\n\n    @data()\n    uploading: boolean;\n\n    @data()\n    upload_failed: boolean;\n\n    @data()\n    upload_success: boolean;\n\n    @data()\n    dragging_file: boolean;\n\n    @prop()\n    onFileSelection;\n\n    @prop()\n    disabled: boolean;\n\n    @prop()\n    extensions: string[];\n\n    abort_controller: AbortController;\n\n    allowed_extensions = [\n        'psd',\n        'pdf',\n        'ai',\n        'eps',\n        'svg',\n        'tif',\n        'tiff',\n        'png',\n        'jpg',\n        'jpeg',\n        'gif',\n        'bmp',\n        'webp',\n        'heic',\n        'avif'\n    ]\n\n    raster_extensions = [\n        'png',\n        'jpg',\n        'gif',\n        'webp',\n        'heic',\n        'avif'\n    ]\n\n    constructor(component) {\n        super(component);\n        this.uuid = uuid4();\n    }\n\n    override mounted() {\n        super.mounted();\n\n        if (this.directUpload) {\n            this.upload();\n        }\n        if (this.delayedSubmission) {\n            this.delayedSubmission.then(() => {\n                this.upload();\n            })\n        }\n        if (this.startingFile) {\n            this.file = this.startingFile;\n        }\n    }\n\n    @method()\n    paste($event) {\n        if ($event.clipboardData.files.length == 0) {\n            return;\n        }\n\n        for (const file of $event.clipboardData.files) {\n            let parts = file.name.split('.');\n            let extension = parts[parts.length - 1];\n\n            let extensions = this.allowed_extensions;\n            if (this.extensions) {\n                extensions = this.extensions;\n            }\n\n            if (extensions.indexOf(extension) !== -1) {\n                this.file = file;\n                if (this.delayedSubmission) {\n                    this.delayedSubmission.then(() => {\n                        this.upload();\n                        this.$forceUpdate();\n                    })\n                }\n                else {\n                    this.upload();\n                }\n                break;\n            }\n        }\n    }\n\n    @method()\n    drop($event) {\n        let files = eventToFiles($event);\n        if (files.length > 0) {\n            this.file = files[0];\n\n            if (this.onFileSelection) {\n                this.onFileSelection(this.file);\n            }\n\n            if (this.url) {\n                if (this.delayedSubmission) {\n                    this.delayedSubmission.then(() => {\n                        this.upload();\n                        this.$forceUpdate();\n                    })\n                } else {\n                    this.upload();\n                }\n            }\n        }\n    }\n\n    upload() {\n        if (!this.url) {\n            this.resetState();\n            return;\n        }\n\n        // Already uploading\n        if (this.abort_controller) {\n            this.resetState();\n            return;\n        }\n\n        let form = null;\n        this.percent_loaded = 0;\n        this.upload_failed = false;\n        this.upload_success = false;\n        this.uploading = true;\n\n        // Store references so they cannot break\n        let file = this.uploadFile();\n        let success = this.success;\n        let failure = this.failure;\n\n        if (this.formData) {\n            form = this.formData(file);\n        }\n        else {\n            form = new FormData();\n            form.append('file', file);\n        }\n\n        if (!form) {\n            this.resetState();\n            return;\n        }\n\n        this.abort_controller = new AbortController();\n        Services.get<Http>('$http').request({\n            url: this.url,\n            data: form,\n            method: 'POST',\n            headers: {\n                'Content-Type': 'multipart/form-data'\n            },\n            signal: this.abort_controller.signal,\n            onUploadProgress: (progressEvent) => {\n                if (progressEvent.total) {\n                    this.percent_loaded = (progressEvent.loaded / progressEvent.total) * 100;\n                }\n                else {\n                    this.percent_loaded = 0\n                }\n            }\n        }).then((response) => {\n            this.uploading = false;\n            this.upload_success = true;\n            this.abort_controller = null;\n            if (success) {\n                success(response, file);\n            }\n            if (this.autoReset) {\n                this.file = null;\n            }\n        }, (error) => {\n            this.uploading = false;\n            this.upload_failed = true;\n            this.abort_controller = null;\n            if (failure) {\n                failure(error, file);\n            }\n        });\n    }\n\n    @method()\n    dragEnter() {\n        this.dragging_file = true;\n    }\n\n    @method()\n    dragLeave() {\n        this.dragging_file = false;\n    }\n\n    @method()\n    fileTypeDisplay() {\n        if (this.allFiles) {\n            return ''\n        }\n        if (this.extensions) {\n            return this.extensions.join(', ');\n        }\n\n        let duplicates = ['jpeg', 'tiff'];\n        if (this.disableVector) {\n            return this.raster_extensions.filter(v => duplicates.indexOf(v) === -1).join(', ');\n        }\n        if (this.disableRaster) {\n            return this.allowed_extensions.filter(v => this.raster_extensions.indexOf(v) === -1).filter(v => duplicates.indexOf(v) === -1).join(', ');\n        }\n        return this.allowed_extensions.filter(v => duplicates.indexOf(v) === -1).join(', ');\n    }\n\n    @method()\n    fileAcceptList() {\n        if (this.allFiles) {\n            return null;\n        }\n        if (this.extensions) {\n            return this.extensions.map(v => '.' + v).join(',');\n        }\n        if (this.disableVector) {\n            return this.raster_extensions.map(v => '.' + v).join(',');\n        }\n        if (this.disableRaster) {\n            return this.allowed_extensions.filter(v => this.raster_extensions.indexOf(v) === -1).map(v => '.' + v).join(',');\n        }\n        return this.allowed_extensions.map(v => '.' + v).join(',');\n    }\n\n    @method()\n    fileSize() {\n        let file = this.uploadFile()\n        if (!file || !file.size) {\n            return;\n        }\n\n        let bytes = file.size;\n        let decimals = 1;\n\n        const k = 1024;\n        const sizes = ['Bytes', 'KiB', 'MiB', 'GiB', 'TiB', 'PiB', 'EiB', 'ZiB', 'YiB'];\n        const i = Math.floor(Math.log(bytes) / Math.log(k));\n        return `${parseFloat((bytes / Math.pow(k, i)).toFixed(decimals))} ${sizes[i]}`;\n    }\n\n    @method()\n    cancelUpload() {\n        if (this.abort_controller) {\n            // This will cause the upload promise to fail/reject so lets handle everything there\n            this.abort_controller.abort();\n        }\n        else {\n            this.resetState();\n        }\n\n        if (this.onFileSelection) {\n            this.onFileSelection(null);\n        }\n    }\n\n    @method()\n    resetState() {\n        this.file = null;\n        this.uploading = false;\n        this.percent_loaded = 0;\n        this.upload_failed = false;\n        this.upload_success = false;\n        this.abort_controller = null;\n    }\n\n    @method()\n    uploadFile() {\n        return this.file || this.directUpload;\n    }\n}\n\n\nexport default function FileUpload() {\n    return {\n        tag: 'file-upload',\n        template: html,\n        controller: FileUploadController\n    }\n}","export const html:string = `\n<div id=\"file-paste-zone\" class=\"file-upload-zone flex-center column no-wrap align-center spacing-xs\" @dragover.prevent=\"\" @drop.prevent=\"drop\" v-if=\"!uploadFile()\" @paste.prevent=\"paste\" v-file-hover>\n    <svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n        <path d=\"M4 16.2422C2.79401 15.435 2 14.0602 2 12.5C2 10.1564 3.79151 8.23129 6.07974 8.01937C6.54781 5.17213 9.02024 3 12 3C14.9798 3 17.4522 5.17213 17.9203 8.01937C20.2085 8.23129 22 10.1564 22 12.5C22 14.0602 21.206 15.435 20 16.2422M8 16L12 12M12 12L16 16M12 12V21\" stroke=\"var(--brand-secondary, #6941C6)\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n    </svg>\n    <p class=\"desktop-only strong\"> Drag file here to upload <br> or </p>\n    <div class=\"input-group\">\n        <input class=\"hidden\" :id=\"uuid\" type=\"file\" @change=\"drop\" :accept=\"fileAcceptList()\">\n        <label class=\"btn-base btn-primary-action\" :class=\"{'btn-secondary-action': delayedSubmission || secondary, 'btn-primary-action': !(delayedSubmission || secondary), disabled: disabled}\" :for=\"uuid\" v-show=\"!uploading\">Choose File</label>\n        <span class=\"text-sm\" v-if=\"!hideTypes && !allFiles\">({{ fileTypeDisplay() }})</span>\n    </div>\n</div>\n<div class=\"file-upload-zone\" v-if=\"uploadFile() && !upload_failed\">\n    <div class=\"flex-left spacing-sm no-wrap\">\n        <svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\" class=\"no-shrink\">\n            <path d=\"M14 2.26946V6.4C14 6.96005 14 7.24008 14.109 7.45399C14.2049 7.64215 14.3578 7.79513 14.546 7.89101C14.7599 8 15.0399 8 15.6 8H19.7305M20 9.98822V17.2C20 18.8802 20 19.7202 19.673 20.362C19.3854 20.9265 18.9265 21.3854 18.362 21.673C17.7202 22 16.8802 22 15.2 22H8.8C7.11984 22 6.27976 22 5.63803 21.673C5.07354 21.3854 4.6146 20.9265 4.32698 20.362C4 19.7202 4 18.8802 4 17.2V6.8C4 5.11984 4 4.27976 4.32698 3.63803C4.6146 3.07354 5.07354 2.6146 5.63803 2.32698C6.27976 2 7.11984 2 8.8 2H12.0118C12.7455 2 13.1124 2 13.4577 2.08289C13.7638 2.15638 14.0564 2.27759 14.3249 2.44208C14.6276 2.6276 14.887 2.88703 15.4059 3.40589L18.5941 6.59411C19.113 7.11297 19.3724 7.3724 19.5579 7.67515C19.7224 7.94356 19.8436 8.2362 19.9171 8.5423C20 8.88757 20 9.25445 20 9.98822Z\" stroke=\"#98A2B3\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n        </svg>\n        <div class=\"flex-left column spacing-sm full-width\">\n            <div class=\"flex-left no-wrap full-width\">\n                <div class=\"flex-left column spacing-xs text-sm full-width\">\n                    <b>{{ uploadFile().name }}</b>\n                    <span>{{ fileSize() }}</span>\n                </div>\n                <button class=\"btn-icon no-shrink\" type=\"button\" @click=\"cancelUpload()\" v-if=\"!upload_success\">\n                    <svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n                        <path d=\"M18 6L6 18M6 6L18 18\" stroke=\"#98A2B3\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n                    </svg>\n                </button>\n                <svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\" v-if=\"upload_success\">\n                    <path d=\"M7.5 12L10.5 15L16.5 9M22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12Z\" stroke=\"#17B26A\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n                </svg>\n            </div>\n            <div class=\"flex-left-center no-wrap full-width\" v-if=\"uploading\">\n                <progress max=\"100\" :value=\"percent_loaded\">{{ percent_loaded }}</progress>\n                <span class=\"text-sm\">{{ $filters.number(percent_loaded, 0) }}%</span>\n            </div>\n            <span v-if=\"uploading && percent_loaded == 100\">Processing File...</span>\n        </div>\n    </div>\n</div>\n<div class=\"file-upload-zone upload-failure\" v-if=\"uploadFile() && upload_failed\">\n    <div class=\"flex-left spacing-sm no-wrap\">\n        <svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\" class=\"no-shrink file-icon\">\n            <path d=\"M14 2.26946V6.4C14 6.96005 14 7.24008 14.109 7.45399C14.2049 7.64215 14.3578 7.79513 14.546 7.89101C14.7599 8 15.0399 8 15.6 8H19.7305M20 9.98822V17.2C20 18.8802 20 19.7202 19.673 20.362C19.3854 20.9265 18.9265 21.3854 18.362 21.673C17.7202 22 16.8802 22 15.2 22H8.8C7.11984 22 6.27976 22 5.63803 21.673C5.07354 21.3854 4.6146 20.9265 4.32698 20.362C4 19.7202 4 18.8802 4 17.2V6.8C4 5.11984 4 4.27976 4.32698 3.63803C4.6146 3.07354 5.07354 2.6146 5.63803 2.32698C6.27976 2 7.11984 2 8.8 2H12.0118C12.7455 2 13.1124 2 13.4577 2.08289C13.7638 2.15638 14.0564 2.27759 14.3249 2.44208C14.6276 2.6276 14.887 2.88703 15.4059 3.40589L18.5941 6.59411C19.113 7.11297 19.3724 7.3724 19.5579 7.67515C19.7224 7.94356 19.8436 8.2362 19.9171 8.5423C20 8.88757 20 9.25445 20 9.98822Z\" stroke=\"#98A2B3\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n        </svg>\n        <div class=\"flex-left column spacing-sm full-width\">\n            <div class=\"flex-left no-wrap full-width\">\n                <div class=\"flex-left column spacing-xs text-sm full-width\">\n                    <b>{{ uploadFile().name }}</b>\n                    <span class=\"text-error\">Upload failed, please try again</span>\n                </div>\n                <button class=\"btn-icon no-shrink\" type=\"button\" @click=\"resetState()\">\n                    <svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n                        <path d=\"M18 6L6 18M6 6L18 18\" stroke=\"#98A2B3\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n                    </svg>\n                </button>\n            </div>\n            <button class=\"btn-link\" @click=\"resetState()\">Try again</button>\n        </div>\n    </div>\n</div>\n`;","import VueComponent, {data, method, prop} from '../../adapters/VueComponent';\nimport IVueComponent from '../../adapters/IVueComponent';\nimport {html} from './Size.html';\nimport {Services} from '../../services/Services';\nimport UserProfileService from '../../../apps/userprofile/services/UserProfileService';\nimport {clamp} from '../../utils/utils';\n\nclass SizeController extends VueComponent {\n    // All sizes are assumed to be in inches and converted to metric based on the user preference\n\n    @data()\n    ups: UserProfileService;\n\n    @prop()\n    value: number;\n\n    @prop()\n    area: boolean;\n\n    constructor(component) {\n        super(component);\n\n        // Needed to sync measurement option changes\n        this.ups = Services.get('UserProfileService');\n    }\n\n    @method()\n    convertedValue() {\n        let ups = Services.get<UserProfileService>('UserProfileService');\n        let converted = this.value * ups.conversion_ratio * ups.conversion_ratio;\n        return `${clamp(converted)} sq. ${ups.size_label}`;\n    }\n}\n\nexport default function Size(): IVueComponent {\n    return {\n        tag: 'size',\n        controller: SizeController,\n        template: html\n    }\n}","export const html:string = `\n{{ area ? convertedValue() : $filters.convertMeasurement(value, true) }}\n`;","import {MetricOptions} from '../../../apps/userprofile/models/User';\n\nexport const html:string = `\n<fieldset class=\"input-group single-option\">\n    <div class=\"toggle-group toggle-sm\">\n        <label for=\"imperial\">\n            <input id=\"imperial\" value=\"${MetricOptions.IMPERIAL}\" name=\"measurement\" type=\"radio\" :checked=\"ups.metric_option == ${MetricOptions.IMPERIAL}\" v-model=\"ups.metric_option\" @change=\"ups.updateMetricOption()\"/>\n            IN\n        </label>\n        <label for=\"metric\">\n            <input id=\"metric\" value=\"${MetricOptions.METRIC}\" name=\"measurement\" type=\"radio\" :checked=\"ups.metric_option == ${MetricOptions.METRIC}\" v-model=\"ups.metric_option\" @change=\"ups.updateMetricOption()\"/>\n            CM\n        </label>\n    </div>\n</fieldset>\n`;","import VueComponent, {data, method} from '../../adapters/VueComponent';\nimport IVueComponent from '../../adapters/IVueComponent';\nimport {html} from './MeasurementOption.html';\nimport {MetricOptions} from '../../../apps/userprofile/models/User';\nimport {Services} from '../../services/Services';\nimport UserProfileService from '../../../apps/userprofile/services/UserProfileService';\n\nclass MeasurementOptionController extends VueComponent {\n\n    @data()\n    ups: UserProfileService;\n\n    constructor(component) {\n        super(component);\n        this.ups = Services.get<UserProfileService>('UserProfileService');\n    }\n\n    @method()\n    updateMetricOption() {\n        this.ups.updateMetricOption();\n    }\n}\n\nexport default function MeasurementOption(): IVueComponent {\n    return {\n        tag: 'measurement-option',\n        controller: MeasurementOptionController,\n        template: html\n    }\n}","import {GenericDropdownController} from '../GenericDropdown/GenericDropdown';\nimport IVueComponent from '../../adapters/IVueComponent';\nimport {html} from './FontDropdown.html';\n\nexport default function FontDropdown(): IVueComponent {\n    return {\n        controller: GenericDropdownController,\n        tag: 'font-dropdown',\n        template: html\n    }\n}","export const html:string = `\n<div class=\"dropdown generic-dropdown\" v-dropdown>\n    <button class=\"btn-base dropdown-label\" type=\"button\" :style=\"selected ? 'font-family: ' + selected.fontFamily() : ''\">\n        {{ search ? '' : getSelectedName(selected) }}\n        \n        <input type=\"text\" \n            class=\"dropdown-search-input\" \n            v-model=\"query\" \n            :placeholder=\"getSelectedName(selected)\"\n            @keydown.down=\"focusFirstListElement($event)\"  \n            @keydown.enter=\"autofillFromSelected($event)\" \n            @click=\"open()\"\n            v-if=\"search\">\n           \n        <input type=\"text\" \n            class=\"autocomplete-element-handler\" \n            v-model=\"autocomplete_value\"  \n            :autocomplete=\"autocomplete\" \n            v-if=\"autocomplete\" \n            aria-hidden=\"true\"\n            @change=\"checkAutocomplete($event)\">\n    </button>\n    <ul class=\"dropdown-list shadow-lg flex-left column no-wrap stretch spacing-xs scrollbar\" role=\"listbox\" @keydown.up=\"tabUp($event)\"  @keydown.down=\"tabDown($event)\" @keydown.esc=\"close()\" @keydown.tab=\"close()\" @keydown.enter=\"close()\" tabindex=\"0\">\n        <li v-if=\"none != null && !hideNone && !noneLast\" @click=\"select(null)\" :class=\"{'selected' : isSelected(null)}\" role=\"option\" aria-label=\"Select a value\">\n            {{ getName(null) }}\n        </li>\n        <li v-for=\"item in items\"   \n            role=\"option\"  \n            :class=\"{'selected' : isSelected(item)}\"\n            @click=\"select(item)\"\n            @keydown.enter=\"select(item); close();\" \n            @keydown.up=\"tabUp($event)\" \n            @keydown.down=\"tabDown($event)\" \n            v-show=\"display(item)\"\n            :aria-selected=\"isSelected(item) ? 'true' : 'false'\"\n            :style=\"item ? 'font-family: ' + item.safeFontFamily() : ''\">\n            {{ getName(item) }}\n        </li>\n        <li v-if=\"none != null && !hideNone && noneLast\" @click=\"select(null)\" :class=\"{'selected' : isSelected(null)}\" role=\"option\">\n            {{ getName(null) }}\n        </li>\n        <li v-show=\"items && items.length > 0 && !anyVisible()\" class=\"no-results-warning\">\n            No Results Found\n        </li>\n    </ul>\n</div>\n`;","import VueComponent, {prop} from '../../adapters/VueComponent';\nimport IVueComponent from '../../adapters/IVueComponent';\n\n/*\n    Why? Because vue is stupid.\n\n    Vue doesn't allow text content to be used with v-text, ex: <span v-text=\"some_value\">placeholder</span>\n    Which would prevent issues with content layout shifts during js startup.\n    So we have to make our own component to do this...\n*/\n\nclass TextElementController extends VueComponent {\n    @prop()\n    value: string\n}\n\nexport default function TextElement(): IVueComponent {\n    return {\n        tag: 'text-element',\n        controller: TextElementController,\n        template: '<span>{{ value }}</span>'\n    }\n}","import { GenericDropdownController } from \"../GenericDropdown/GenericDropdown\";\nimport {data, method, prop} from '../../adapters/VueComponent';\nimport {DropdownConfigType} from '../../directives/Dropdown';\nimport IVueComponent from '../../adapters/IVueComponent';\nimport {html} from './MultiSelectionDropdown.html';\n\n\nclass MultiSelectionDropdownController extends GenericDropdownController {\n    @prop({\n        emit:true\n    })\n    override selected: any[]  = undefined;\n\n    @prop()\n    all: boolean;\n\n    @prop()\n    any: boolean;\n\n    @prop()\n    idField: string; // Used for matching items back up when the items list changes\n\n    @data()\n    dropdown_config: DropdownConfigType;\n\n    @prop()\n    html: string;\n\n    @prop()\n    itemStyling: (item: any) => string|void;\n\n    constructor(component) {\n        super(component);\n\n        this.dropdown_config  = {\n            stay_open: true,\n            on_close: () => {\n                this.query = '';\n            }\n        }\n\n        this.bind('change:items', () => {\n            let item;\n\n            if (!this.idField) {\n                item = this.items.filter(v => this.selected.indexOf(v) != -1);\n            }\n            else {\n                item = this.items.filter(v => this.selected.map(k => k[this.idField]).indexOf(v[this.idField]) != -1);\n            }\n\n            this.selected = item;\n        }, this);\n    }\n\n    @method()\n    override isSelected(item: any) {\n        if (!this.selected) {\n            return false;\n        }\n        if (this.any && item == null) {\n            return this.selected.length == 0;\n        }\n        if (this.all && this.selected.length == this.items.length) {\n            if (!(this.none && item == this.none)) {\n                return true;\n            }\n        }\n        if (this.none && item == this.none && this.selected.indexOf(item) != -1) {\n            return true;\n        }\n\n        if (this.selected == null) {\n            return false;\n        }\n\n        for (const value of this.selected) {\n            if (this.isItemSelected(value, item)) {\n                return true;\n            }\n        }\n\n        return false;\n    }\n\n    @method()\n    allSelected() {\n        return this.selected?.length == this.items?.length;\n    }\n\n    @method()\n    override select(item: any): void {\n        if (this.none && item == this.none) {\n            if (this.selected.indexOf(item) == -1) {\n                this.selected = [item];\n            }\n            else {\n                this.selected.splice(this.selected.indexOf(item), 1);\n            }\n\n            if (this.triggerFunction) {\n                this.triggerFunction(item);\n            }\n            return;\n        }\n\n        if (this.none && item && item != this.none) {\n            if (this.selected.indexOf(this.none) != -1) {\n                this.selected.splice(this.selected.indexOf(this.none), 1);\n            }\n        }\n\n        if (this.any && item == null) {\n            this.selected = [];\n        }\n\n        if (item != null) {\n            if (this.selected.indexOf(item) != -1) {\n                this.selected.splice(this.selected.indexOf(item), 1);\n            }\n            else {\n                this.selected.push(item)\n            }\n        }\n\n        if (this.triggerFunction) {\n            this.triggerFunction(item);\n        }\n    }\n\n    @method()\n    selectAll(): void {\n        let item = this.selected.length == this.items.length ? [] : [...this.items];\n        this.selected = item;\n\n        if (this.triggerFunction) {\n            this.triggerFunction(item);\n        }\n    }\n\n    override getSelectedName(item: any) {\n        if (!this.selected || this.selected.length == 0 && this.any) {\n            return 'Any';\n        }\n\n        return this.selected.map(v => this.getName(v)).join(', ');\n    }\n\n    @method()\n    override display(item) {\n        if (!this.search || !this.query) {\n            return true;\n        }\n\n        let name = super.getSelectedName(item);\n\n        if (this.searchType == 'contains') {\n            return name && name.toLowerCase().indexOf(this.query.toLowerCase()) != -1;\n        }\n\n        return name && name.toLowerCase().indexOf(this.query.toLowerCase()) === 0;\n    }\n\n    @method()\n    getItemStyling(item) {\n        if (!this.itemStyling) {\n            return null;\n        }\n        return this.itemStyling(item);\n    }\n}\n\nexport function MultiSelectionDropdown(): IVueComponent {\n    return {\n        controller: MultiSelectionDropdownController,\n        template: html,\n        tag: 'multi-selection-dropdown'\n    }\n}\n","export const html: string = `\n<div class=\"dropdown generic-dropdown\" v-dropdown=\"dropdown_config\">\n    <button class=\"btn-base dropdown-label\" type=\"button\">\n        {{ search ? '' : getSelectedName(selected) }}\n        \n        <input type=\"text\" \n            class=\"dropdown-search-input\" \n            v-model=\"query\" \n            :placeholder=\"getSelectedName(selected)\"\n            @keydown.down=\"focusFirstListElement($event)\"  \n            @keydown.enter=\"autofillFromSelected($event)\" \n            @click=\"open()\"\n            v-if=\"search\">\n           \n        <input type=\"text\" \n            class=\"autocomplete-element-handler\" \n            v-model=\"autocomplete_value\"  \n            :autocomplete=\"autocomplete\" \n            v-if=\"autocomplete\" \n            aria-hidden=\"true\"\n            @change=\"checkAutocomplete($event)\">\n    </button>\n    \n    <ul class=\"dropdown-list shadow-lg flex-left column no-wrap stretch spacing-xs scrollbar\" role=\"listbox\" @keydown.up=\"tabUp($event)\"  @keydown.down=\"tabDown($event)\" @keydown.esc=\"close()\" @keydown.tab=\"close()\" @keydown.enter=\"close()\" tabindex=\"-1\">\n        <li v-if=\"any && !query\" @click=\"select(null)\" role=\"option\" class=\"flex-left-center spacing-xs no-wrap\">\n            <input type=\"checkbox\" :checked=\"isSelected(null)\">\n            <span>Any</span>\n        </li>\n        <li v-if=\"none && !query\" @click=\"select(none)\" role=\"option\" class=\"flex-left-center spacing-xs no-wrap\">\n            <input type=\"checkbox\" :checked=\"isSelected(none)\">\n            <span v-if=\"html\" v-html=\"none\"></span>\n            <span v-if=\"!html\">{{ none }}</span>\n        </li>\n        <li v-if=\"all && !query\" @click=\"selectAll(items)\" role=\"option\" class=\"flex-left-center spacing-xs no-wrap\">\n            <input type=\"checkbox\" :checked=\"allSelected()\">\n            <span>All</span>\n        </li>\n        <li v-for=\"item in items\" @click=\"select(item)\" role=\"option\" tabindex=\"0\" v-on:keydown.enter=\"select(item);\" v-on:keydown.up=\"tabUp($event)\" v-on:keydown.down=\"tabDown($event)\" v-show=\"display(item)\" class=\"flex-left-center spacing-xs no-wrap\" :style=\"getItemStyling(item)\">\n            <input type=\"checkbox\" :checked=\"isSelected(item)\">\n            <span v-if=\"html\" v-html=\"getName(item)\"></span>\n            <span v-if=\"!html\">{{ getName(item) }}</span>\n        </li>\n        <li v-show=\"items && items.length > 0 && !anyVisible()\" class=\"no-results-warning flex-left-center spacing-xs no-wrap\">\n            <span>No Results Found</span>\n        </li>\n    </ul>\n</div>\n`;\n","import ErrorList from './ErrorList/ErrorList';\nimport VueApp from '../adapters/VueApp';\nimport GenericDropdown from './GenericDropdown/GenericDropdown';\nimport Paginator from './Paginator/Paginator';\nimport CallbackPaginator from './CallbackPaginator/CallbackPaginator';\nimport ColorDropdown from './ColorDropdown/ColorDropdown';\nimport MessageListComponent from './MessageList/MessageList';\nimport FileUpload from './FileUpload/FileUpload';\nimport Size from './Size/Size';\nimport MeasurementOption from './MeasurementOption/MeasurementOption';\nimport FontDropdown from './FontDropdown/FontDropdown';\nimport TextElement from './TextElement/TextElement';\nimport {MultiSelectionDropdown} from './MultiSelectionDropdown/MultiSelectionDropdown';\n\n\nexport default function registerComponents(vue_app: VueApp) {\n    vue_app.registerComponent(ErrorList);\n    vue_app.registerComponent(GenericDropdown);\n    vue_app.registerComponent(Paginator);\n    vue_app.registerComponent(CallbackPaginator);\n    vue_app.registerComponent(ColorDropdown);\n    vue_app.registerComponent(MultiSelectionDropdown);\n    vue_app.registerComponent(MessageListComponent);\n    vue_app.registerComponent(FileUpload);\n    vue_app.registerComponent(Size);\n    vue_app.registerComponent(MeasurementOption);\n    vue_app.registerComponent(FontDropdown);\n    vue_app.registerComponent(TextElement);\n}","import VueMixin from '../adapters/VueMixin';\nimport {mobileScreenSize, xsScreenSize} from '../utils/utils';\nimport {data} from '../adapters/VueComponent';\n\nexport default class MobileMixin extends VueMixin {\n    /*\n        Used for detecting if the client is on mobile or desktop screen size\n     */\n\n    @data()\n    mobile: boolean;\n\n    @data()\n    screen_xs: boolean;\n\n    protected mobileCheck;\n\n    constructor(component) {\n        super(component);\n        this.mobileCheck = () => {\n            this.mobile = mobileScreenSize();\n            this.screen_xs = xsScreenSize();\n        }\n        this.mobileCheck();\n    }\n\n    override unmounted() {\n        window.removeEventListener('resize', this.mobileCheck);\n        super.unmounted();\n    }\n\n    override mounted() {\n        super.mounted();\n        window.addEventListener('resize', this.mobileCheck, {passive: true});\n    }\n\n}","import axios, {AxiosResponse} from 'axios';\nimport {Model} from './Model';\nimport {Collection} from './Collection';\nimport {uuid4} from '../utils/uuid';\nimport {IDeferred, IPromise, SimplePromise} from '../utils/SimplePromise';\nimport ModelSyncService from '../services/ModelSyncService';\nimport {Services} from '../services/Services';\nimport {Http} from '../services/Http';\nimport {EventDispatcher} from '../utils/EventDispatcher';\n\nexport default class APIResponse<T extends Model> extends EventDispatcher {\n    public limit: number;\n    public previous: string;\n    public next: string;\n    public offset: number;\n    public totalCount: number;\n    public extra: any;\n    public request_uuid: string;\n\n    public model: typeof Model;\n    public request: IPromise<AxiosResponse>;\n    public response: AxiosResponse;\n\n    public params: Object;\n\n    public itemsReady: boolean = false;\n    private _deferred: IDeferred<Collection<T>>;\n    private deferredOverride: IDeferred<Collection<T>>;\n    private _items: Collection<T>;\n    private _uuid: string;\n    private addition_queue: number[];\n    private syncAdditionScope: any;\n\n    constructor(request: IPromise<AxiosResponse>, model: typeof Model, params: any, data?: any) {\n        super();\n        this.addition_queue = [];\n        this.request = request;\n        this.model = model;\n        this.params = params;\n        this.items = new Collection<T>();\n\n        if (this.request && !data) {\n            this.request.then(this.success.bind(this), this.error.bind(this));\n        }\n\n        this._deferred = SimplePromise.defer<Collection<T>>();\n\n        if (data) {\n            this.setPostData(data);\n        }\n    }\n\n    reload(): IPromise<Collection<T>> {\n        if (!this.response) {\n            return;\n        }\n\n        if (this.response.config.method != 'get') {\n            console.warn('Only GET requests can be reloaded.');\n            return;\n        }\n\n        this.request = Services.get<Http>('$http').get(this.response.config.url, this.response.config);\n        this.request.then(this.success.bind(this), this.error.bind(this));\n\n        this.response = null;\n        this._deferred = SimplePromise.defer<Collection<T>>();\n\n        return this.$promise;\n    }\n\n    subset(filter) {\n        let new_response = new APIResponse(null, this.model, null, null);\n\n        let deferred = SimplePromise.defer<Collection<any>>();\n        new_response.overrideDeferrer(deferred);\n\n        this.$promise.then(() => {\n            new_response.items = this.items.filter(filter);\n            deferred.resolve(new_response.items);\n        })\n\n        return new_response;\n    }\n\n\n    get items(): Collection<T> {\n        return this._items;\n    }\n\n    get collectionClass() {\n        if (this.model.collectionClass) {\n            return this.model.collectionClass;\n        }\n        return Collection\n    }\n\n    set items(items: Collection<T> | T[]) {\n        this._items = new this.collectionClass();\n\n        if (!items) return;\n        for (const item of items) {\n            let mdl = new this.model(item) as T;\n            mdl.bind('sync', () => {\n                this.trigger('sync');\n            }, this);\n            this._items.push(mdl);\n        }\n    }\n\n    getPostData() {\n        const items_data = [];\n\n        for (const item of this.items) {\n            items_data.push(item.getPostData());\n        }\n\n        return {\n            items: items_data,\n            limit: this.limit,\n            previous: this.previous,\n            next: this.next,\n            offset: this.offset,\n            totalCount: this.totalCount\n        };\n    }\n\n    setPostData(data) {\n        this._items = new this.collectionClass();\n\n        this.items = data.items || data.objects;\n\n        this.limit = data.limit || data.meta && data.meta.limit;\n        this.previous = data.previous || data.meta && data.meta.previous;\n        this.next = data.next || data.meta && data.meta.next;\n        this.offset = data.offset || data.meta && data.meta.offset;\n        this.totalCount = data.totalCount || data.meta && data.meta.totalCount;\n        this.extra = data.extra ? data.extra : {};\n        this.request_uuid = data.meta ? data.meta.request_uuid : null;\n\n        this.itemsReady = true;\n        this.trigger('itemsReady');\n        this._deferred.resolve(this.items);\n    }\n\n    public reset(): void {\n        this.limit = 0;\n        this.previous = '';\n        this.next = '';\n        this.offset = 0;\n        this.totalCount = 0;\n        this.itemsReady = false;\n        this.extra = {};\n        this.request_uuid = null;\n        this.items = new Collection<T>();\n    }\n\n    private softFail() {\n        // 2XX response code, but invalid data\n        this.reset();\n        this._deferred.resolve(null);\n        this.itemsReady = true;\n    }\n\n    private success(response: any): void {\n        this.response = response;\n\n        let data = response.data;\n\n        this.reset();\n\n        if(response.status == 204 || !data) {\n            this.softFail();\n            return;\n        }\n\n        if (data.objects) {\n            this.items = data.objects;\n\n            // Meta Information\n            this.limit = data.meta.limit;\n            this.previous = data.meta.previous;\n            this.next = data.meta.next;\n            this.offset = data.meta.offset;\n            this.totalCount = data.meta.total_count;\n            this.extra = data.meta.extra ? data.meta.extra : {};\n            this.request_uuid = data.meta.request_uuid;\n        }\n        else if (data.resource_uri) {\n            this.items = [data] as any;\n        }\n        else {\n            this.softFail();\n            return;\n        }\n\n        if (this.deferredOverride) {\n            this.deferredOverride.promise.then(() => {\n                this.itemsReady = true;\n                this.trigger('itemsReady');\n            });\n        }\n        else {\n            this.itemsReady = true;\n            this.trigger('itemsReady');\n        }\n\n        this._deferred.resolve(this.items);\n    }\n\n    public overrideDeferrer(deferred: IDeferred<Collection<T>>) {\n        this.deferredOverride = deferred;\n    }\n\n    get $promise(): IPromise<Collection<T>> {\n        if (this.deferredOverride) {\n            return this.deferredOverride.promise;\n        }\n\n        return this._deferred.promise;\n    }\n\n    get deferred(): IDeferred<Collection<T>> {\n        return this._deferred;\n    }\n\n    get $resolved(): any {\n        return this.itemsReady;\n    }\n\n    private error(response: any): void {\n        this.reset();\n        this._deferred.reject(response);\n    }\n\n    // This can cause a memory leak if not properly cleaned up. Just setting it to null will not free the memory or\n    // deregister the local and server listeners unless a scope is provided and it is destroyed. Call disableSync\n    // before setting null\n    public enableSync($scope, mode?) {\n        this.$promise.then(() => {\n            for (const item of this.items) {\n                item.enableSync($scope, mode);\n            }\n        })\n    }\n\n    // This can cause a memory leak if not properly cleaned up. Just setting it to null will not free the memory or\n    // deregister the local and server listeners unless a scope is provided and it is destroyed. Call disableSync\n    // before setting null\n    public enableAdditionSync($scope?) {\n        this.syncAdditionScope = $scope;\n        this.$promise.then(() => {\n            Services.get<ModelSyncService>('ModelSyncService').registerQuery(this, $scope);\n\n            for (const item of this.items) {\n                this.bindItemChangeRemoval(item);\n                item.enableSync($scope)\n            }\n        });\n    }\n\n    // Cleans up server and local listeners and instances to free memory\n    public disableSync(all?) {\n        Services.get<ModelSyncService>('ModelSyncService').deregisterQuery(this);\n\n        if (all) {\n            for (const item of this.items) {\n                item.disableSync();\n            }\n        }\n    }\n\n    get uuid() {\n        if (!this._uuid) {\n            this._uuid = uuid4();\n        }\n        return this._uuid;\n    }\n\n    onServerAddition(id: number) {\n        if (!id) {\n            console.warn('Model sync addition did not provide a id, stopping data sync.');\n            return;\n        }\n\n        // If it already exists do nothing. The normal sync will update it.\n        for (const item of this.items) {\n            if (item.id === id) {\n                return;\n            }\n        }\n        // If we are already fetching them item but waiting on a response dont add it again\n        if (this.addition_queue.indexOf(id) != -1) {\n            return;\n        }\n        this.addition_queue.push(id);\n\n        let model = this.model.objects.get({id: id});\n        model.$promise.then(() => {\n            this.bindItemChangeRemoval(model);\n            this.items.push(model as any);\n            model.enableSync(this.syncAdditionScope);\n            this.trigger('on-sync-addition', model);\n\n            if (this.addition_queue.indexOf(id) != -1) {\n                this.addition_queue.splice(this.addition_queue.indexOf(id), 1);\n            }\n\n            this.trigger('sync');\n        });\n    }\n\n    private bindItemChangeRemoval(item) {\n        item.bind('sync-reload', () => {\n            for (const filter_key in this.params) {\n                // We should probably implement a subset of the available queries or send a request to the server to\n                // verify that its still valid for the queryset. However for now we will only match basic value checks.\n                if (item[filter_key] == undefined || filter_key.indexOf('__') != -1) {\n                    continue\n                }\n\n                // We are unable to build a queryset for null in javascript so we need to accept 'None' instead.\n                // This will conflict for a string search for that value so we may need to make it so this wont\n                // be replaced for __eq so we can do foo__eq='None' however we currently dont have a use case for this.\n                let filter_value = this.params[filter_key];\n                if (filter_value == 'None') {\n                    filter_value = null;\n                }\n\n                let is_same = item[filter_key] == filter_value;\n                if (!is_same && filter_value != null && typeof item[filter_key]) {\n                    if (typeof item[filter_key] == 'object') {\n                        if (typeof filter_value == 'number' && item[filter_key].id) {\n                            is_same = item[filter_key].id == filter_value;\n                        }\n                        else if (typeof filter_value == 'string' && item[filter_value].resource_uri) {\n                            is_same = item[filter_key].resource_uri == filter_value;\n                        }\n                        else if (typeof filter_value == 'string' && item[filter_value].buildResourceURI && item[filter_value].buildResourceURI()) {\n                            is_same = item[filter_value].buildResourceURI() == filter_value;\n                        }\n                    }\n                }\n\n                if (!is_same) {\n                    if (this.items.indexOf(item) != -1) {\n                        this.items.splice(this.items.indexOf(item), 1);\n                        item.disableSync();\n                        item.trigger('on-sync-removal');\n                    }\n                }\n            }\n\n            this.trigger('sync');\n        }, this);\n    }\n}\n","import {TForeignKeyURI} from './fields/ForeignKeyURIField';\nimport {IModel} from './IModel';\n\n\nexport class Collection<T extends IModel> extends Array<T> {\n    public $injected: any;\n\n    constructor(...items: T[]) {\n        super(...items);\n        Object.setPrototypeOf(this, Collection.prototype);\n    }\n\n    getData() {\n        // Returns an array of data from all of the models in the collection\n        const data = [],\n            items: T[] = this as any as T[];\n        for (const item of items) {\n            data.push(item.getData());\n        }\n        return data;\n    }\n\n    getPostData() {\n        const data = [],\n            items: T[] = this as any as T[];\n        for (const item of items) {\n            data.push(item.getPostData());\n        }\n        return data;\n    }\n\n    isModified(): boolean {\n        const items: T[] = this as any as T[];\n        for (const item of items) {\n            if (item.isModified())\n                return true;\n        }\n        return false;\n    }\n\n    getItemFromURI(resourceUri: TForeignKeyURI<T>): T {\n        if (!resourceUri) {\n            return null;\n        }\n\n        const items: T[] = this as any as T[];\n        for (const item of items) {\n            if (item.equals(resourceUri)) {\n                return item;\n            }\n        }\n    }\n\n    getItemFromID(id: number): T {\n        if (!id) {\n            return null;\n        }\n\n        id = Number(id);\n        return this.find(v => v.id == id);\n    }\n\n    contains(resourceUri: TForeignKeyURI<T>): boolean {\n        const items: T[] = this as any as T[];\n        for (const item of items) {\n            if (item.equals(resourceUri))\n                return true;\n        }\n        return false;\n    }\n\n    removeItemFromURI(resourceUri: TForeignKeyURI<T>): void {\n        const items: T[] = this as any as T[];\n        for (const item of items) {\n            if (item.equals(resourceUri)) {\n                items.splice(items.indexOf(item), 1);\n                return;\n            }\n        }\n    }\n\n    removeItemFromID(id: number): T {\n        id = parseInt(`${id}`);\n        const items: T[] = this as any as T[];\n        for (const item of items) {\n            if (item[item.pkField] === id) {\n                items.splice(items.indexOf(item), 1);\n                return;\n            }\n        }\n    }\n\n    getItemIDs() {\n        const ids: number[] = [],\n            items: T[] = this as any as T[];\n        for (const item of items) {\n            ids.push(item[item.pkField]);\n        }\n\n        return ids;\n    }\n\n    distinct(): Collection<T> {\n        let list = new Collection<T>();\n\n        for (const item of this) {\n            if (list.indexOf(item) == -1) {\n                list.push(item);\n            }\n        }\n\n        return list;\n    }\n\n    moveToFront(id) {\n        let item = this.getItemFromID(id);\n        if (item) {\n            this.removeItemFromID(id);\n            this.unshift(item);\n        }\n    }\n\n    override indexOf(item: T, fromIndex?: number) {\n        if (item && item.id) {\n            return super.indexOf(this.getItemFromID(item.id), fromIndex)\n        }\n\n        return super.indexOf(item, fromIndex);\n    }\n}\n","import APIResponse from './APIResponse';\nimport {Model} from './Model';\nimport {Services} from '../services/Services';\nimport {Http} from '../services/Http';\nimport {IPromise, SimplePromise} from '../utils/SimplePromise';\n\nexport interface IAPIResourceCallback extends Function {\n    (data: Object): void;\n}\n\nexport class InvalidURI extends Error {\n    public override name = \"InvalidURI\";\n    constructor (message) {\n        super(message);\n    }\n}\n\ntype Query = { [key: string]: any }\n\nexport class APIResource<T extends Model> {\n    static cache = Object.create(null);\n\n    model: any;\n\n    constructor(model) {\n        this.model = model;\n    }\n\n    private encodedUrl(data, strict=false) {\n        // Copy object so we can modify it, this will also ignore all functions\n        data = {...data};\n\n        const uri = this.model.uri;\n        let parts = uri.split('/');\n\n        let parsed_parts: string[] = [];\n        for (const part of parts) {\n            if (part.indexOf(':') === 0) {\n                let field = part.split(':')[1];\n\n                if (data[field]) {\n                    parsed_parts.push(encodeURIComponent(data[field]));\n                    delete data[field];\n                }\n                else if (strict) {\n                    throw new InvalidURI('The uri variable was not found in the data');\n                }\n            }\n            else {\n                parsed_parts.push(part);\n            }\n        }\n        return {\n            url: parsed_parts.join('/'),\n            data: {\n                params: data\n            }\n        };\n    }\n\n    private get baseUrl() {\n        const uri = this.model.uri;\n        let parts = uri.split('/');\n\n        let parsed_parts: string[] = [];\n        for (const part of parts) {\n            if (part.indexOf(':') != 0) {\n                parsed_parts.push(part);\n            }\n        }\n        return parsed_parts.join('/');\n    }\n\n    public get(params: Query): T {\n        const data = this.encodedUrl(params);\n\n        let instance = new this.model();\n        const deferred = SimplePromise.defer<null>();\n\n        instance.deferred = deferred;\n\n        Services.get<Http>('$http').get(data.url, data.data).then((response) => {\n            if (response.data.objects) {\n                if (response.data.objects.length == 0) {\n                    deferred.reject('Item not found');\n                }\n                else {\n                    instance.setData(response.data.objects[0])\n                }\n            }\n            else {\n                instance.setData(response.data);\n            }\n\n            instance.softSave(true);\n            instance.trigger('load', this);\n            instance.trigger('sync');\n            deferred.resolve(instance);\n        }, (error) => {\n            deferred.reject(error);\n\n            return error;\n        })\n\n        return instance;\n    }\n\n    getData(params: Query): IPromise<any> {\n        const data = this.encodedUrl(params);\n        const deferred = SimplePromise.defer<null>();\n\n        Services.get<Http>('$http').get(data.url, data.data).then((response) => {\n            if (response.data.objects) {\n                if (response.data.objects.length == 0) {\n                    deferred.reject('Item not found');\n                }\n                else {\n                    deferred.resolve(response.data.objects[0]);\n                }\n            }\n            else {\n                deferred.resolve(response.data);\n            }\n        }, (error) => {\n            deferred.reject(error);\n        })\n\n        return deferred.promise;\n    }\n\n    public filter(params: Query, cache_key?: string): APIResponse<T> {\n        if (cache_key) {\n            let cache_value = this.getCache(cache_key);\n            if (cache_value) {\n                return cache_value;\n            }\n        }\n\n        let response = new APIResponse<T>(Services.get<Http>('$http').get(this.baseUrl, {params: params}), this.model, params);\n\n        if (cache_key) {\n            this.setCache(cache_key, response);\n        }\n\n        return response;\n    }\n\n    public clearCache(key?) {\n        if (key) {\n            this.setCache(key, null);\n        }\n        else {\n            APIResource.cache[this.model] = null;\n        }\n    }\n\n    public isCached(key) {\n        return !!this.getCache(key);\n    }\n\n    private getCache(key) {\n        if (!this.model.uri) {\n            return undefined;\n        }\n\n        if (APIResource.cache[this.model.uri] && APIResource.cache[this.model.uri][key]) {\n            return APIResource.cache[this.model.uri][key];\n        }\n\n        return undefined;\n    }\n\n    private setCache(key, value) {\n        if (!this.model.uri) {\n            return;\n        }\n\n        if (!APIResource.cache[this.model.uri]) {\n            APIResource.cache[this.model.uri] = Object.create(null);\n        }\n\n        APIResource.cache[this.model.uri][key] = value;\n    }\n\n    public all(cache?: boolean): APIResponse<T> {\n        if (cache) {\n            let cache_value = this.getCache('all');\n            if (cache_value) {\n                return cache_value;\n            }\n        }\n\n        const data = this.encodedUrl({});\n        let response = new APIResponse<T>(Services.get<Http>('$http').get(data.url, data.data), this.model, {});\n\n        if (cache) {\n            this.setCache('all', response);\n        }\n\n        return response;\n    }\n\n    public none() {\n        return new APIResponse<T>(null, this.model, {});\n    }\n\n    public from(data): APIResponse<T> {\n        return new APIResponse<T>(null, this.model, {}, data);\n    }\n\n    public delete(params: Query): APIResponse<T> {\n        const data = this.encodedUrl(params, true);\n\n        return new APIResponse<T>(Services.get<Http>('$http').delete(data.url), this.model, {});\n    }\n}\n","import {APIResource, IAPIResourceCallback} from './APIResource';\nimport MessageList from '../utils/MessageList';\nimport {Services} from './../services/Services';\nimport {IModel} from './IModel';\nimport {Field, field} from './fields/Field';\nimport {Collection} from './Collection';\nimport ModelSyncService from '../services/ModelSyncService';\nimport {Http} from '../services/Http';\nimport {EPromiseStates, IDeferred, IPromise, SimplePromise} from '../utils/SimplePromise';\nimport {processRequestError} from '../utils/utils';\nimport {EventDispatcher} from '../utils/EventDispatcher';\nimport {metadata} from \"../utils/metadata\";\nimport {toRaw} from \"vue\";\n\nclass ModelDataAccessor {\n    constructor(\n        private model: Model,\n        private accessor: string\n    ) {\n        for (const field of model.getFields()) {\n            const instance = model.getField(field);\n            const getter = function () {\n                return instance[accessor];\n            };\n            Object.defineProperty(this, field, {\n                get: getter\n            });\n        }\n    }\n}\n\nexport enum SyncSetting {\n    LOG = 0,\n    OVERRIDE = 1,\n}\n\nexport type TModelDefinitionList = { [key: string]: typeof Model; };\n\nexport class InvalidModelError extends Error {\n    public override name = 'InvalidModelError';\n    constructor (message) {\n        super(message);\n    }\n}\n\nexport class Model extends EventDispatcher implements IModel {\n    static uri: string;\n    static objects: APIResource<Model>;\n    static collectionClass: any = Collection;\n    static resource_name: string;\n    static field_config = {};\n    static cached_field_config_union;\n\n    _errors: MessageList;\n    resource: any;\n    pkField: string = 'id';\n\n    private _lastData: any;\n    private _cleaned: ModelDataAccessor;\n    private deferred: IDeferred<any>;\n    private socket: WebSocket;\n    private change_detection_disabled: boolean;\n    public sync_setting: SyncSetting = SyncSetting.OVERRIDE;\n    public modified_on_server: boolean;\n    public initialized: boolean;\n    public sync_enabled: boolean;\n\n    @field()\n    id: number;\n\n    @field()\n    resource_uri: string;\n\n    // Optional, needed for syncing data via websocket\n    @field(Field, {\n        readOnly: true\n    })\n    content_type_id: number;\n\n    constructor(data?: Object) {\n        super();\n        /* You can override the field setter by adding _ to the field name\n         * on the model. You can then access the field getter/setter with\n         * model._field and create your own model.field getter and/or setter\n         *\n         * Notes:\n         *     - Each Field adds it's string name to __fields__ with the @field decorator.\n         *     - Model.field_name is an array of [FieldClass, field config, override_getter/setter boolean]\n         */\n        for (const field of this.fields) {\n            const fieldType = this.field_map[field].field;\n            const config = this.field_map[field].config;\n            const field_instance_key = '__' + field;\n            const instance = new fieldType(this, config.default, config);\n            this[field_instance_key] = instance;\n\n            if (data && data[field] !== undefined) {\n                instance.value = data[field];\n            }\n\n            instance.bind('change', (values) => {\n                this.trigger('change', field, values);\n                this.trigger('change:' + field, values);\n            }, this);\n        }\n\n        this._lastData = this.getData();\n        this.initialized = true;\n    }\n\n    get fields() {\n        return Object.keys(this.field_map);\n    }\n\n    get field_map() {\n        let cls = this.constructor;\n        if (cls.hasOwnProperty('cached_field_map')) {\n            return cls['cached_field_map'];\n        }\n\n        let current = cls[metadata()];\n        let data = {};\n        while (current) {\n            data = {...current, ...data};\n            current = Object.getPrototypeOf(current)\n        }\n        cls['cached_field_map'] = data;\n        return data;\n    }\n\n    static get field_config_union() {\n        if (this == Model) {\n            return this.field_config;\n        }\n\n        return {...Object.getPrototypeOf(this).field_config_union, ...this.field_config};\n    }\n\n    unresolvedPromises(promise_set?) {\n        if (!promise_set) {\n            promise_set = [];\n        }\n\n        if (this.$promise.state == EPromiseStates.PENDING) {\n            promise_set.push(this.$promise);\n        }\n\n        for (const field of this.fields) {\n            const item = this[field];\n\n            if (item instanceof Model) {\n                item.unresolvedPromises(promise_set);\n            }\n            else if (item instanceof Array) {\n                for (const i of item) {\n                    if (i['unresolvedPromises']) {\n                        i.unresolvedPromises(promise_set);\n                    }\n                }\n            }\n        }\n\n        return promise_set;\n    }\n\n\n    get cleaned(): {[key: string]: any} {\n        if (!this._cleaned) {\n            this._cleaned = new ModelDataAccessor(this, 'cleaned');\n        }\n        return this._cleaned;\n    }\n\n    buildResourceURI(): string {\n        if (!this.id || !this.pkField || !(this.constructor as any).uri) {\n            return null;\n        }\n\n        const uri = (this.constructor as any).uri.replace(`:${this.pkField}`, this.id);\n\n        if (this.resource_uri == null) {\n            this.resource_uri = uri;\n        }\n\n        return uri;\n    }\n\n    static resourceURIFromID(id: string): string {\n        if (!this.uri) {\n            return null;\n        }\n\n        // This won't work with the pk field, but I don't think we have ever changed it from :id\n        return this.uri.replace(`:id`, id);\n    }\n\n    get baseURI() {\n        if (!(this.constructor as any).uri) {\n            throw new InvalidModelError(`A static resource uri was not provided on the model ${this.constructor.name}`)\n        }\n\n        return (this.constructor as any).uri.split(':id/').join('')\n    }\n\n    equals(other: any): boolean {\n        if (!other) {\n            return false;\n        }\n        else if (this === other) {\n            return true;\n        }\n        else if (typeof other === 'string' && this.resource_uri === other) {\n            return true;\n        }\n        else if (typeof other === 'number' && this[this.pkField] === other) {\n            return true;\n        }\n        else if (other.resource_uri && other.resource_uri === this.resource_uri) {\n            return true;\n        }\n        else if (other.buildResourceURI && other.buildResourceURI() && this.buildResourceURI() && other.buildResourceURI() === this.buildResourceURI()) {\n            return true;\n        }\n\n        return toRaw(this) == toRaw(other);\n    }\n\n    isNew(): boolean {\n        return !this[this.pkField];\n    }\n\n    isModified(field?) {\n        const oData = this._lastData,\n              nData = this.getData();\n\n        let is_modified = (key) => {\n            if (this[key] && typeof this[key].isModified === 'function') {\n                if (this[key].isModified()) {\n                    return true;\n                }\n            }\n\n            // If the id is unset then we need return true so nested changes will correctly report that something has been added\n            if (key == 'id' && !nData[key]) {\n                return true;\n            }\n\n            return nData[key] !== oData[key];\n        }\n\n        if (field) {\n            return is_modified(field);\n        }\n        else {\n            for (const key of this.fields) {\n                if (is_modified(key)) {\n                    return true;\n                }\n            }\n            return false;\n        }\n    }\n\n    modifiedFields(): string[] {\n        const oData = this._lastData,\n              nData = this.getData(),\n              fields = [];\n\n        for (const key of this.fields) {\n            if (this[key] && typeof this[key].isModified === 'function') {\n                if (this[key].isModified() && fields.indexOf(key) == -1)\n                    fields.push(key);\n            }\n            if (nData[key] !== oData[key] && fields.indexOf(key) == -1)\n                fields.push(key);\n        }\n\n        return fields;\n    }\n\n    isNull(): boolean {\n        const data = this.getPostData();\n        for (const key of this.fields) {\n            if ([null, undefined, []].indexOf(data[key]) === -1)\n                return false;\n        }\n        return true;\n    }\n\n    setData(data: Object) {\n        if (!data) {\n            return;\n        }\n        for (const key of this.fields) {\n            if (data[key] !== undefined) {\n                this[key] = data[key];\n            }\n        }\n    }\n\n    /*\n     * Revert data to the last setData() call. Useful for forms that edit a\n     * list of items and then hit cancel rather than saving the list.\n     */\n    revert(field?) {\n        if (!field) {\n            this.setData(this._lastData);\n        }\n        else {\n            this[field] = this._lastData[field];\n        }\n    }\n\n    getData() {\n        const _data = {};\n        for (const key of this.fields) {\n            const field = this.getField(key);\n\n            // Ignore fields that use a getter/setter without a field like @link.\n            // Otherwise, the softSave() or getData() functions will load everything when it's not needed.\n            if (!field) {\n                continue;\n            }\n\n            _data[key] = field.value;\n        }\n        return _data;\n    }\n\n    getPostData(): {[key: string]: any} {\n        const _data = {};\n        for (const key of this.fields) {\n            const field = this['__' + key];\n\n            if (!field)\n                continue;\n\n            const data = field.getPostData();\n\n            if (key === 'resource_uri' && !data)\n                continue;\n\n            _data[key] = data;\n        }\n\n        return _data;\n    }\n\n    getFields(): string[] {\n        return this.fields;\n    }\n\n    getField<T = Field>(field: string): T {\n        return this[`__${field}`] as T;\n    }\n\n    validate(): MessageList {\n        this._errors = new MessageList();\n        for (const field of this.fields) {\n            if (!this['__' + field] || typeof this['__' + field].validate !== 'function')\n                continue;\n\n            const errors = this['__' + field].validate();\n            if (errors.length > 0) {\n                this._errors.add(field, errors);\n            }\n\n            // Validate all model lists that have a getData property\n            if (this[field] && this[field]['getData']) {\n                for (const key of Object.keys(this[field])) {\n                    let item = this[field][key];\n                    if (item && item['validate']) {\n                        const errs = item.validate();\n                        if (errs && errs.length) {\n                            this._errors.merge(errs.list);\n                        }\n                    }\n                }\n            }\n        }\n\n        this.trigger('validate', this._errors);\n        return this._errors;\n    }\n\n    hasErrors() {\n        this.validate();\n        return this.errors.length > 0;\n    }\n\n    get errors() {\n        if (this._errors == null) {\n            this._errors = new MessageList();\n        }\n        return this._errors;\n    }\n\n    get $promise(): IPromise<any> {\n        return this.deferred ? this.deferred.promise : SimplePromise.resolve<any>(this);\n    }\n\n    get $resolved() {\n        return this.deferred?.promise.state != 0;\n    }\n\n    getResourceParams() {\n        const params = {};\n        params[this.pkField] = this[this.pkField];\n        return params;\n    }\n\n    reload(): IPromise<Model> {\n        if (!this[this.pkField]) {\n            console.error(`Unable to reload the model without a valid id - ${this.resource_uri}`);\n            return null;\n        }\n\n        let _deferred = SimplePromise.defer<Model>();\n        this.deferred = _deferred;\n\n        const data_promise = (this.constructor as any).objects.getData({id: this[this.pkField]});\n        data_promise.then((data) => {\n            this.setData(data);\n            _deferred.resolve(this);\n            this.trigger('load');\n            this.trigger('sync');\n        }, (err) => {\n            _deferred.reject(err);\n            this.trigger('sync');\n        });\n\n        return this.deferred.promise;\n    }\n\n    static parseResourceName(uri: string) {\n        if (!uri) {\n            return null;\n        }\n\n        const parts = uri.split('/');\n\n        if (parts.length >= 3) {\n            return parts[parts.length - 3];\n        }\n\n        return null;\n    }\n\n    save() {\n        const _deferred: IDeferred<any> = SimplePromise.defer();\n        this.deferred = _deferred;\n\n        this.trigger('presave', this);\n\n        const _successCallback = (response) => {\n            let data = null;\n            if (response.data.resource_uri || response.data.id) {\n                data = response.data;\n            }\n            else if (response.data.items && response.data.items.length == 1) {\n                data = response.data.items[0];\n            }\n            else {\n                console.error('Unknown model data response type');\n            }\n\n            this.setData(data);\n            this.softSave(true);\n            this.trigger('save', this);\n            this.trigger('load', this);\n\n            _deferred.resolve(this);\n        };\n        const _errorCallback = (error) => {\n            // Should not return null but just in case\n            let response = error;\n            if (error && error.response) {\n                response = error.response;\n            }\n\n            if (response.data) {\n                Model.parseErrors(this, response, [], 0);\n            }\n            else {\n                this.errors.merge(processRequestError(error));\n            }\n\n            //Record all errors\n            _deferred.reject('Failed to save');\n\n            return response;\n        };\n\n        if (this[this.pkField] && (this.resource_uri || this.buildResourceURI())) {\n            Services.get<Http>('$http').request({\n                url: this.resource_uri || this.buildResourceURI(),\n                data: this.getPostData(),\n                method: 'put',\n                headers: {\n                    'Content-Type': 'application/json'\n                }\n            }).then(_successCallback, _errorCallback);\n        } else {\n            Services.get<Http>('$http').request({\n                url: this.baseURI,\n                data: this.getPostData(),\n                method: 'post',\n                headers: {\n                    'Content-Type': 'application/json'\n                }\n            }).then(_successCallback, _errorCallback);\n        }\n\n        return _deferred.promise;\n    }\n\n    static parseErrors(model, response, visited, depth) {\n        const resource = (model.constructor as any).objects;\n\n        if (!response || !response.data) {\n            model.errors.merge(processRequestError(response));\n            return;\n        }\n\n        // In case of abnormally large tree depth, prevent infinite recursion by stopping without parsing any deeper\n        if (depth >= 8) {\n            console.error('Model with too large of tree depth');\n            return;\n        }\n\n        //If this is a model with a uri\n        if (resource && resource.model && resource.model.uri) {\n            const res_name = resource.model.resource_name ?\n                resource.model.resource_name : Model.parseResourceName(resource.model.uri);\n\n            // Prevent visiting the same element twice so we don't add the same error multiple times or go into\n            // a infinite recursive loop\n\n            // If the model has been visited before\n            let found = false;\n            visited.some((item) => {\n                if (item['name'] === res_name && item['id'] === model.id) {\n                    found = true;\n\n                    return true;\n                }\n            });\n            if (found) {\n                return;\n            }\n\n            // If not add the item to the list\n            visited.push({\n                name: res_name,\n                id: model.id\n            });\n\n            // Add all errors to the model\n            for (const k in response.data[res_name]) {\n                if (k == null || !response.data[res_name].hasOwnProperty(k)) {\n                    return;\n                }\n                model.errors.add(k, response.data[res_name][k]);\n            }\n\n            // Iterate over all fields and try to parse errors for those\n            const fields = model.getFields();\n            for (const field_name of fields) {\n                if (model[field_name] != null) {\n                    this.parseErrors(model[field_name], response, visited, depth + 1);\n                }\n            }\n        }\n\n        // If this is the root element and no errors were found but still failed\n        if (depth === 0 && model.errors.length === 0) {\n            model.errors.add('__all__', 'An unknown error has occurred.');\n        }\n    }\n\n    softSave(propagate: boolean = false, stack = []) {\n        this._lastData = this.getData();\n\n        if (propagate) {\n            for (const level of stack) {\n                if (level == this) {\n                    return;\n                }\n            }\n\n            stack.push(this);\n            for (const key of this.fields) {\n                if (!this[key]) continue;\n\n                // Model? softSave\n                if (this[key] instanceof Model)\n                    this[key].softSave(true, stack);\n\n                // Collection? map(softSave)\n                if (this[key] instanceof Collection)\n                    this[key].map((m) => { if (typeof m.softSave === 'function') m.softSave(true, stack); });\n            }\n            stack.pop();\n        }\n    }\n\n    delete(callback?: IAPIResourceCallback, error_callback?: IAPIResourceCallback): IPromise<any> {\n        if (!this[this.pkField]) {\n            console.error(`Unable to delete the model without a valid id - ${this.resource_uri}`);\n            return null;\n        }\n        const _deferred: IDeferred<any> = SimplePromise.defer();\n        this.deferred = _deferred;\n\n        let response = (this.constructor as any).objects.delete(this.getResourceParams());\n\n        response.$promise.then(() => {\n            _deferred.reject()\n            if (callback) {\n                callback(this);\n            }\n        }, (error) => {\n            _deferred.resolve();\n            if (error_callback) {\n                error_callback(error);\n            }\n            return error;\n        })\n\n        return response.$promise;\n    }\n\n    bindToFields(event: string, fields: string[], callback, context) {\n        for (const field of fields) {\n            const _field = this['__' + field];\n            if (_field)\n                _field.bind(event, callback, context);\n\n        }\n    }\n\n    /*\n        Configure the static properties on the class. This should only be called during the registerModels setup phase.\n    */\n    static configure<TModel>(cls) {\n        cls.objects = new APIResource(cls);\n    }\n\n    static registerModels(models: TModelDefinitionList) {\n        for (const name in models) {\n            const modelName: string = name;\n            const model: typeof Model = models[modelName];\n\n            // Configure static properties\n            Model.configure(model);\n\n            Services.registerClass(name, model);\n        }\n    }\n\n    public enableSync(scope, mode?) {\n        if (mode !== null) {\n            this.sync_setting = mode;\n        }\n\n        this.$promise.then(() => {\n            Services.get<ModelSyncService>('ModelSyncService').registerModel(this, scope);\n        });\n    }\n\n    public disableSync() {\n        Services.get<ModelSyncService>('ModelSyncService').deregisterModel(this);\n    }\n\n    public onServerChange() {\n        this.modified_on_server = true;\n        this.trigger('out-of-sync');\n        if (this.sync_setting === SyncSetting.OVERRIDE || this.sync_setting == null) {\n            return this.reload().then(() => {\n                this.trigger('sync-reload');\n            })\n        }\n    }\n}\n","import {IModel} from '../IModel';\nimport {Services} from '../../services/Services';\nimport {Model} from '../Model';\nimport {EventDispatcher} from '../../utils/EventDispatcher';\n\n/*\n    Loads data from the api response into the model\n */\nexport function field(field_type = Field, config: any = {}) {\n    return function(nothing: any, context: ClassFieldDecoratorContext) {\n        let field = context.name as string;\n        if (context.metadata) {\n            // The metadata object inherits its parent's properties using something like the prototype chain\n            // If you modify the same property, then it will be shared between all possible objects which is undesirable\n            // So each field needs to use its own name as a key, and we can flatten the prototype chain to get the final shape of the object\n            context.metadata[field] = {\n                field: field_type,\n                config: config\n            }\n        }\n        let field_name = context.name as string;\n        // Called post constructor\n        context.addInitializer(function() {\n            const field_instance_key = '__' + field_name;\n            const field_override_key = '_' + field_name;\n\n            let getter;\n            let setter;\n            if (field_override_key in (this as Model)) {\n                getter = () => {\n                    return this[field_override_key];\n                }\n                setter = (v: any) => {\n                    this[field_override_key] = v;\n                }\n            }\n            else {\n                getter = () => {\n                    return this[field_instance_key].value;\n                };\n                setter = (v: any) => {\n                    this[field_instance_key].value = v;\n                };\n            }\n\n            // Create new property with getter and setter\n            Object.defineProperty(this, field, {\n                get: getter,\n                set: setter,\n                enumerable: true,\n                configurable: true\n            });\n        })\n    };\n}\n\ntype FieldLinkFunction = (obj: any) => any;\ntype FieldLink = string | FieldLinkFunction;\ntype LinkType = 'single'|'multiple';\n\n/*\n    @link(import_name, field, type?, post_load?)\n    Lazy loads a linked resource when accessing the property. This is useful for data that is not stored directly\n    on the model, or only loading content when it's needed. This data will not be included when saving. It also\n    sets up syncing bindings, so we can tell vue when it needs to update the display.\n\n    These are not included when posting data to the server.\n\n    A simplified usage example is:\n\n    @link('ClipartCategorySearchTerm', 'graphic')\n    search_terms: APIResponse<AdminClipartCategorySearchTerm>;\n\n    Which is equivalent to:\n\n    get search_terms() {\n        if (!this._search_terms) {\n            this._search_terms = Services.get('ClipartCategorySearchTerm').objects.filter({graphic: this.id});\n        }\n        return this._search_terms;\n    }\n    set search_terms(v) {\n        this._search_terms = v;\n    }\n\n\n    A function can also be provided as the field to handle more complex loading.\n\n    @link('ClipartCategoryGraphic', (v: AdminClipart) => {return {object_id: v.id, type: 'clipart'}}, 'single')\n    category_graphic: AdminClipartCategoryGraphic;\n\n    Which is equivalent to:\n\n    get category_graphic() {\n        if (!this._category_graphic) {\n            this._category_graphic = Services.get('ClipartCategoryGraphic').objects.filter({object_id: this.id, type: 'clipart'});\n        }\n\n        return this._category_graphic;\n    }\n    set category_graphic(v) {\n        this._category_graphic = v;\n    }\n */\nexport function link(import_name: string, field: FieldLink, type: LinkType = 'multiple', post_load?: (v: any) => void) {\n    return function(nothing: any, context: ClassFieldDecoratorContext) {\n        let private_key = `_${context.name as string}`;\n\n        context.addInitializer(function() {\n            const getter = function () {\n                // The 'this' object is now an instance of the target.\n                if (this[private_key]) {\n                    return this[private_key];\n                }\n\n                if (!this.$resolved) {\n                    return null;\n                }\n\n                let field_data = {};\n                if (typeof field == 'string') {\n                    if (!this.id) {\n                        return null;\n                    }\n\n                    field_data[field] = this.id;\n                }\n                else {\n                    field_data = field(this);\n                }\n\n                let qry;\n                if (type == 'single') {\n                    qry = Services.get<typeof Model>(import_name).objects.get(field_data);\n\n                    qry.$promise.then(() => {\n                        qry.bind('sync', () => {\n                            this.trigger('sync');\n                        }, this);\n                        this.trigger('sync');\n                    })\n                }\n                else {\n                    qry = Services.get<typeof Model>(import_name).objects.filter(field_data);\n                    qry.$promise.then(() => {\n                        for (const item of qry.items) {\n                            item.bind('sync', () => {\n                                this.trigger('sync');\n                            }, this);\n                        }\n                        this.trigger('sync');\n                    })\n                }\n\n                qry.$promise.then(() => {\n                    if (post_load) {\n                        post_load(this);\n                    }\n                    this.trigger('sync');\n                });\n\n                this[private_key] = qry;\n\n                return this[private_key];\n            }\n\n            const setter = function (v) {\n                this[private_key] = v;\n            }\n\n            Object.defineProperty(this, context.name, {\n                get: getter,\n                set: setter,\n                enumerable:false,\n                configurable: true\n            });\n        })\n    }\n}\n\nexport interface IFieldConfig {\n    [key: string]: any;\n}\n\nexport interface IField {\n    readonly model: IModel;\n    value: any;\n    validate(): string[];\n}\n\nexport class Field extends EventDispatcher implements IField {\n    protected _value: any;\n    protected _errors: string[];\n    protected config: IFieldConfig;\n    public initial_value;\n\n    constructor(\n        public readonly model: IModel,\n        value?: any,\n        config?: IFieldConfig\n    ) {\n        super();\n        this.model = model;\n        this.config = config || {};\n        this.value = value;\n        this._errors = [];\n    }\n\n    get read_only() {\n        return !!this.config.readOnly;\n    }\n\n    set value(v: any) {\n        // The new decorators changed property initialization from pre-constructor to post-constructor.\n        // So subclasses that defines a new property will \"set\" the value to undefined.\n        // Unfortunately that means we need to ignore all undefined values since it's not possible to tell\n        // when a class is done initializing.\n        if (v === undefined) {\n            return;\n        }\n\n        this.setValue(v);\n    }\n\n    get value(): any {\n        return this._value;\n    }\n\n    get cleaned(): any {\n        return this.clean();\n    }\n\n    clean(): any {\n        return this._value;\n    }\n\n    getPostData(): any {\n        if (this.config['readOnly']) {\n            return null;\n        }\n\n        return this.clean();\n    }\n\n    get skipValidation(){\n        return !this.config['required'] && this._value == null;\n    }\n\n    protected initialValueSetup(v: any) {\n        this.initial_value = v;\n        return v;\n    }\n\n    protected setValue(v: any) {\n        if (v === this._value)\n            return;\n\n        // If the value is getting set for the first time lets let sub classes parse it if need be\n        if (this._value === undefined) {\n            v = this.initialValueSetup(v);\n        }\n\n        const oldValue = this._value;\n        this._value = v;\n\n        if (this.model.initialized) {\n            this.trigger('change', {\n                oldValue: oldValue,\n                value: v\n            });\n        }\n    }\n\n    setValueWithoutTrigger(v) {\n        this._value = v;\n    }\n\n    protected getValue() {\n        return this._value;\n    }\n\n    public validate(): string[] {\n        this._errors = [];\n\n        if (this.config['required'] === true && [null, undefined, ''].indexOf(this._value) > -1)\n            this._errors.push('This field is required.');\n\n        return this._errors;\n    }\n}\n","import {Field} from \"./Field\";\nimport {Services} from '../../services/Services';\n\nexport class ForeignField extends Field {\n    private _relatedModel:any;\n\n    get relatedModel():any {\n        if ([null, undefined].indexOf(this._relatedModel) > -1) {\n            if (typeof this.config.model === 'string')\n                this._relatedModel = Services.get(this.config.model);\n            else\n                this._relatedModel = this.config.model;\n        }\n        return this._relatedModel;\n    }\n\n    override get value() {\n        return this.getValue();\n    }\n}\n","import {Model} from '../Model';\nimport {ForeignField} from './ForeignField';\nimport {ResourceURI} from '../helpers/ResourceURI';\n\nexport class ForeignKeyField extends ForeignField {\n    override set value(data: any) {\n        if (data === undefined) {\n            return;\n        }\n\n        if (data == null) {\n            this.setValue(null);\n            return;\n        }\n        \n        if (data instanceof this.relatedModel) {\n            this.setValue(data);\n        }\n        else if (data != null && data != '') {\n            let data_type = typeof data\n            if (data_type == 'string' || data_type == 'number') {\n                let uri = null;\n                if (typeof data === 'string') {\n                    let v;\n                    if (this.relatedModel.objects.isCached('all') && (v = this.relatedModel.objects.all(true).items.getItemFromURI(data))) {\n                        this.setValue(v)\n                    }\n                    else {\n                        uri = new ResourceURI(data);\n                        if (uri.id) {\n                            this.setValue(this.relatedModel.objects.get({id: uri.id}));\n                        }\n                    }\n                }\n                else if (typeof data === 'number') {\n                    let v;\n                    if (this.relatedModel.objects.isCached('all') && (v = this.relatedModel.objects.all(true).items.getItemFromID(data))) {\n                        this.setValue(v)\n                    }\n                    else {\n                        this.setValue(this.relatedModel.objects.get({id: data}));\n                    }\n                }\n            }\n            else {\n                this.setValue(new this.relatedModel(data));\n            }\n        }\n        else {\n            this.setValue(data);\n        }\n    }\n\n    protected override initialValueSetup(data): any {\n        if (!data) {\n            return null;\n        }\n\n        // If the model specifies that a foreign key object is set but a id or string was given\n        // lets load the data from the server\n        let data_type = typeof data\n        if (data_type == 'string' || data_type == 'number') {\n            let uri = null;\n            if (typeof data === 'string') {\n                uri = new ResourceURI(data);\n                if (uri.id) {\n                    return this.relatedModel.objects.get({id: uri.id})\n                }\n            }\n            else if (typeof data === 'number') {\n                return this.relatedModel.objects.get({id: data})\n            }\n        }\n\n        return data;\n    }\n\n    override get value() {\n        return this.getValue();\n    }\n\n    override getPostData() {\n        if (this.value instanceof Model) {\n            if (this.config['readOnly'] === true || (!this.value.isModified() && typeof(this.value.resource_uri) === 'string')) {\n                return this.value.resource_uri ? this.value.resource_uri : this.value.buildResourceURI();\n            }\n            else if (!this.value.isNull()) {\n                return this.value.getPostData();\n            }\n        }\n\n        return null;\n    }\n}\n","import {Collection} from '../Collection';\nimport {Model} from '../Model';\nimport {ForeignKeyField} from './ForeignKeyField';\nimport {ResourceURI} from '../helpers/ResourceURI';\n\n/**\n * ForeignKeyURIField can be the object, resource_uri or pk of the foreign obj\n *\n * Object/T: You can use field.load() to load the object.\n * Resource URI: URI string is returned by default from TastyPie\n * Foreign PK: When POST|PUT data to the API, PKs can be used\n */\n\n// Ideally the type would be T | number | string but due to how typescript works that would be a type that\n// only contains the functions that all 3 of those types contain which would exclude all functions of T\nexport type TForeignKeyURI<T> = T | any;\n\nexport class ForeignKeyURIField<T extends Model> extends ForeignKeyField {\n    public resourceUri: ResourceURI;\n    public _autoSelectCollection: Collection<T>;\n\n    // We dont want to auto load uris when they are allowed and expected\n    protected override initialValueSetup(data): any {\n        return data;\n    }\n\n    override set value(data: any) {\n        if (data === undefined) {\n            return;\n        }\n\n        if (data === null) {\n            if (this.value === null || this.value === undefined)\n                this.setValue(null);\n\n            return;\n        }\n\n        if (typeof data === 'string') {\n            const model: T = this.autoSelectCollection.getItemFromURI(data);\n            if (model) {\n                data = model;\n            } else {\n                this.resourceUri = new ResourceURI(data);\n            }\n        } else if (typeof data === 'number') {\n            const model: T = this.autoSelectCollection.getItemFromID(data);\n            if (model) {\n                data = model;\n            } else {\n                this.resourceUri = new ResourceURI(this.relatedModel ? this.relatedModel.uri.replace(':id', data) : `/${data}/`);\n            }\n        }\n\n        if (this.relatedModel && data instanceof this.relatedModel) {\n            this.setValue(data);\n        }\n        else if (['string', 'number'].indexOf(typeof data) > -1) {\n            this.setValue(data);\n        }\n        else {\n            this.setValue(new this.relatedModel(data));\n        }\n\n        if (this.config.load)\n            this.load();\n    }\n\n    override get value() {\n        return this.getValue();\n    }\n\n    get id() {\n        if (this.resourceUri) {\n            return this.resourceUri.id;\n        } else if (this.getValue() instanceof this.relatedModel) {\n            return this.getValue().id;\n        } else {\n            return null;\n        }\n    }\n\n    override getPostData() {\n        // If the value is null, let's just return early\n        if ([null, undefined].indexOf(this.value) > -1)\n            return null;\n\n        // Since this is a URI field, we should try to return a string URI\n        if (typeof(this.value) === 'string')\n            return this.value;\n\n        else if (typeof(this.value) === 'object' && typeof(this.value.resource_uri || this.value.buildResourceURI()) === 'string')\n            return this.value.resource_uri || this.value.buildResourceURI();\n\n        // If a new object has been assigned, try to let parent class handle it\n        return super.getPostData();\n    }\n\n    load() {\n        if (this.id) {\n            this.setValue(this.relatedModel.objects.get({\n                id: this.id\n            }));\n        }\n\n        return this.getValue();\n    }\n\n    /**\n     * Setting a autoSelectCollection will try to find the model in the\n     * collection when a string URI is passed to `set value` method above.\n     *\n     * @param collection\n     */\n    set autoSelectCollection(collection: Collection<T>) {\n        this._autoSelectCollection = collection;\n\n        // If the current value is a string, reset it to find the model\n        if (typeof this.value == 'string') {\n            this.value = this.value;\n        }\n    }\n\n    get autoSelectCollection(): Collection<T> {\n        if (!this._autoSelectCollection)\n            this._autoSelectCollection = new Collection<T>();\n        return this._autoSelectCollection;\n    }\n}\n","import {Collection} from '../Collection';\nimport {IModel} from '../IModel';\nimport {IFieldConfig} from './Field';\nimport {ForeignField} from './ForeignField';\nimport {ResourceURI} from '../helpers/ResourceURI';\n\nexport class ToManyField extends ForeignField {\n    constructor(\n        model: IModel,\n        value?: any,\n        config?: IFieldConfig\n    ) {\n        super(model, value, config);\n        this._value = new Collection();\n    }\n\n    private data_to_model(data) {\n        if (data === null || data === undefined) {\n            return null;\n        }\n\n        if (typeof data == 'string') {\n            let uri = new ResourceURI(data);\n\n            if (uri.id) {\n                return this.relatedModel.objects.get({id: uri.id});\n            }\n        }\n        if (typeof data == 'number') {\n            return this.relatedModel.objects.get({id: data});\n        }\n\n        return new this.relatedModel(data);\n    }\n\n    override set value(data: any) {\n        if (data === undefined) {\n            return;\n        }\n        /*\n         * Class that extend this field and override the setter can call this\n         * to maintain the default setter functionality. The other way to do\n         * this would be to use the Object.getOwnPropertyDescriptor:\n         * Object.getOwnPropertyDescriptor(Foo.prototype, 'value').get.apply(this)\n         */\n\n        /*\n         * If the value being set is null or is not a collection, call reset\n         * to create a new collection. You can pass null here to empty a\n         * list.\n         */\n\n        // Commented the line out below - Question: If we're setting the value,\n        // shouldn't we replace the entire collection?\n        //if(this._value == null || !(this._value instanceof this.relatedModel.collectionClass))\n        this.reset();\n\n        if (data === null || data === undefined) {\n            return;\n        }\n\n        // If an array is not being added lets try to figure out what it is. This should not be passed in\n        // but lets not fault if it is.\n        if (!(data instanceof Array)) {\n            let converted_data = this.data_to_model(data);\n            if (converted_data) {\n                this.getValue().push(converted_data);\n            }\n        }\n        else {\n            for (const d of data) {\n                if (d === null || d === undefined) {\n                    continue;\n                }\n\n                if (d instanceof this.relatedModel) {\n                    this.getValue().push(d);\n                }\n                else {\n                    let item = this.data_to_model(d);\n\n                    if (!item) {\n                        continue;\n                    }\n\n                    // If the static uri field is not passed to the related model set it manually (Bug with ts?)\n                    if (!(item.constructor as any).uri && (this.model.constructor as any).uri) {\n                        (item.constructor as any).uri = (this.model.constructor as any).uri;\n                    }\n\n                    this._value.push(item);\n                }\n            }\n        }\n        this.trigger('change');\n    }\n\n    override get value() {\n        return this.getValue();\n    }\n\n    override validate() {\n        super.validate();\n\n        if (this.config['required'] === true && this.getValue() && this.getValue().length === 0)\n            this._errors.push('This collection needs to have at least one item in it');\n\n        return this._errors;\n    }\n\n    reset() {\n        this._value.length = 0;\n    }\n\n    override getPostData() {\n        const data = [];\n        for (const m of this.value) {\n            if ((m.isNew() || m.isModified() || this.config['full']) && this.config['readOnly'] !== true) {\n                data.push(m.getPostData());\n            } else {\n                if (m.resource_uri) {\n                    data.push(m.resource_uri);\n                }\n                else if (m.buildResourceURI()) {\n                    data.push(m.buildResourceURI());\n                }\n            }\n        }\n        return data;\n    }\n}\n","\nexport class ResourceURI {\n    public uri: string;\n    private _idRegex: RegExp;\n\n    constructor(uri) {\n        this.uri = uri;\n        this.idRegex = /\\/([0-9]+)\\//;\n    }\n\n    set idRegex(regex) {\n        this._idRegex = new RegExp(regex);\n    }\n\n    get id() {\n        return parseInt(this._idRegex.exec(this.uri)[1]);\n    }\n}\n","import {DuplicateServiceException, UndefinedServiceException} from '../adapters/Exceptions';\nimport {IPromise, SimplePromise} from '../utils/SimplePromise';\n\nexport interface IServices {\n    singleton(name: string, Cls: any): void;\n    factory(name: string, Cls: any): void;\n    registerClass(name: string, Cls: any): void;\n    waitOn(name: string): IPromise<void>;\n    resolve(string: string): void;\n    isRegistered(name: string): boolean;\n}\n\nexport namespace Services {\n    const instantiated_singletons: any = {};\n    const singleton_classes: any = {};\n    const factory_classes: any = {};\n    const class_list: any = {};\n    const deferred_list: any = {};\n\n    export function allClasses() {\n        return class_list;\n    }\n\n    export function waitOn(name: string): IPromise<void> {\n        if (!deferred_list[name]) {\n            deferred_list[name] = SimplePromise.defer<void>();\n        }\n\n        return deferred_list[name].promise;\n    }\n\n    export function resolve(name) {\n        if (!deferred_list[name]) {\n            deferred_list[name] = SimplePromise.defer<void>();\n        }\n\n        deferred_list[name].resolve();\n    }\n\n    /*\n        Register a singleton class.\n        The class is created only once and shared between all instances when requested.\n     */\n    export function singleton(name: string, Cls: any) {\n        validateNamespace(name);\n        singleton_classes[name] = Cls;\n    }\n\n    /*\n        Register a factory class.\n        The class is created when requested with the injected objects included in the constructor.\n     */\n    export function factory(name: string, Cls: any) {\n        validateNamespace(name);\n        factory_classes[name] = Cls;\n    }\n\n    /*\n        Register a class.\n        The class will be returned on request without being constructed.\n     */\n    export function registerClass(name: string, Cls: any) {\n        validateNamespace(name);\n        class_list[name] = Cls;\n    }\n\n    /*\n        Objects work the same as classes, the item is just returned\n     */\n    export function registerObject(name, obj: any) {\n        validateNamespace(name);\n        class_list[name] = obj;\n    }\n\n    /*\n        Throws an exception if the name has already been registered before\n     */\n    function validateNamespace(name) {\n        if (singleton_classes[name] || factory_classes[name] || class_list[name]) {\n            let error_msg = `A duplicate service was registered with the name \"${name}\". Make sure that this service name is unique and not being imported more than once.`;\n            console.error(error_msg);\n            throw new DuplicateServiceException(error_msg);\n        }\n\n        return false;\n    }\n\n    export function get<T>(name: string): T {\n        if (class_list[name]) {\n            return class_list[name];\n        }\n        else if (factory_classes[name]) {\n            const Cls = factory_classes[name];\n            if (Cls.$inject) {\n                return new Cls(...getList(Cls.$inject));\n            }\n            else {\n                return new Cls();\n            }\n        }\n        else if (singleton_classes[name]) {\n            if (!instantiated_singletons[name]) {\n                const Cls = singleton_classes[name];\n                if (Cls.$inject) {\n                    instantiated_singletons[name] = new Cls(...getList(Cls.$inject));\n                }\n                else {\n                    instantiated_singletons[name] = new Cls();\n                }\n            }\n\n            return instantiated_singletons[name];\n        }\n\n        const error_msg = `The service \"${name}\" has not been registered.`;\n        throw new UndefinedServiceException(error_msg);\n    }\n\n    export function isRegistered(name: string): boolean {\n        return !!class_list[name] || !!factory_classes[name] || singleton_classes[name];\n    }\n\n    export function getList(names: string[]) {\n        if (!names) {\n            return [];\n        }\n\n        let items = [];\n        for (const name of names) {\n            items.push(get(name));\n        }\n        return items;\n    }\n}","import WeakRefPolyfill from './WeakRefPolyfill';\n\nexport interface EventCallbackList {\n\t[index: string]: EventCallback[];\n}\n\nconst WeakRefClass = (window['WeakRef'] as any) || WeakRefPolyfill;\n\nexport class EventCallback {\n    public calls: number;\n    constructor(\n        public readonly fnc: any,\n        public readonly key: number,\n        public readonly once: boolean,\n        public readonly context?: WeakRefPolyfill,\n    ) {\n        this.calls = 0;\n    }\n\n    call(args: any[]): boolean {\n        if (this.once && this.calls > 0) {\n            return false;\n        }\n\n        let unwrapped = this.context.deref();\n        if (!unwrapped) {\n            return false;\n        }\n        if (unwrapped.$destroyed) {\n            return false;\n        }\n\n        this.fnc(...args);\n        this.calls += 1;\n        return true;\n    }\n}\n\nexport type EventDispatcherCallback = (...args: any[]) => any;\n\n\nexport class EventDispatcher  {\n    private _listeners: EventCallbackList;\n    private _lastKey: number;\n\n    // Flags this item as destroyed and all remaining events should be discarded when found\n    public $destroyed: boolean;\n\n    constructor() {\n        this._lastKey = 0;\n        this._listeners = {};\n    }\n\n    bind(event: string, fct: EventDispatcherCallback, context: any, once?: boolean): number {\n        // The context object is the context in which the callback function and is tied to its lifecycle.\n        // Only a weak\n        once = once || false;\n        this._lastKey++;\n        this._listeners[event] = this._listeners[event] || [];\n        this._listeners[event].push(new EventCallback(fct, this._lastKey, once, new WeakRefClass(context)));\n        return this._lastKey;\n    }\n\n    once(event: string, fct: EventDispatcherCallback, context?: any): number {\n        return this.bind(event, fct, context || this, true);\n    }\n\n    unbind(event: string, key?: number): boolean {\n        if(!(event in this._listeners)) return false;\n        if(key) {\n            for(const cb of this._listeners[event]) {\n                if(key == cb.key) {\n                    this._listeners[event].splice(this._listeners[event].indexOf(cb), 1);\n                    return true;\n                }\n            }\n        } else {\n            this._listeners[event] = [];\n            return true;\n        }\n        return false;\n    }\n\n    unbindWithContext(event: string, context: any): number {\n        if(!(event in this._listeners)) return 0;\n        let toRemove: EventCallback[] = [],\n            cnt = 0;\n\n        for(const cb of this._listeners[event]) {\n            if(context == cb.context.deref()) {\n                toRemove.push(cb);\n            }\n        }\n\n        for(const cb of toRemove) {\n            this._listeners[event].splice(this._listeners[event].indexOf(cb), 1);\n            cnt++;\n        }\n        return cnt;\n    }\n\n    getListener(event: string, key: number): EventCallback | undefined {\n        for(const cb of this._listeners[event]) {\n            if(key == cb.key)\n                return cb;\n        }\n    }\n\n    trigger(event: string, ...args: any[]): void {\n        if(!(event in this._listeners)) return;\n\n        let to_remove = []\n        for (let i = 0; i < this._listeners[event].length; i++) {\n            const cb: EventCallback = this._listeners[event][i];\n\n            // We need to unbind callbacks before they're called to prevent\n            // infinite loops if the event is somehow triggered within the\n            // callback\n            if(cb.once) {\n                this.unbind(event, cb.key);\n                i--;\n            }\n\n            if (!cb.call(args)) {\n                to_remove.push(cb);\n            }\n        }\n\n        for (const item of to_remove) {\n            this._listeners[event].splice(this._listeners[event].indexOf(item), 1);\n        }\n    }\n\n    clearAllEvents() {\n        this._listeners = {};\n    }\n}","// A basic polyfill for WeakRef since support levels are only at 97%\n\nexport default class WeakRefPolyfill {\n    private value;\n    constructor(value) {\n        this.value = value;\n    }\n\n    deref() {\n        return this.value;\n    }\n}","import {processRequestError} from \"./utils\";\n\nexport interface IMessageHash {\n    [key: string]: string[];\n}\n\nexport default class MessageList {\n    items: IMessageHash;\n\n    constructor(messages?: IMessageHash) {\n        this.reset();\n\n        if (messages) {\n            this.merge(messages);\n        }\n    }\n\n    static fromRequest(error) {\n        return processRequestError(error);\n    }\n\n    reset(): void {\n        this.items = Object.create(null);\n    }\n\n    add(field: string, errors: string[] | string): void {\n        this.merge({[field]: typeof errors == 'string' ? [errors] : errors});\n    }\n\n    remove(field: string): void {\n        delete this.items[field];\n    }\n\n    removeAll(items: string[]) {\n        for (const item of items) {\n            this.remove(item);\n        }\n    }\n\n    get(field: string): string[] {\n        return this.items[field];\n    }\n\n    merge(messages: IMessageHash|MessageList): void {\n        if (!messages) {\n            return;\n        }\n\n        if (messages instanceof MessageList) {\n            messages = messages.list;\n        }\n\n        for (const key of Object.keys(messages)) {\n            if (!messages[key]) {\n                continue;\n            }\n\n            // Just in case the input wasn't correct\n            if (typeof messages[key] == 'string') {\n                this.items[key] = [...new Set([...(this.items[key] || []), `${messages[key]}`.trim()])];\n            }\n            else {\n                this.items[key] = [...new Set([...(this.items[key] || []), ...messages[key].filter(v => v).map(v => `${v}`.trim())])];\n            }\n\n            // Remove empty sets\n            if (this.items[key].length == 0) {\n                delete this.items[key];\n            }\n        }\n    }\n\n    get list(): IMessageHash {\n        return this.items;\n    }\n\n    get flatList(): string[] {\n        return this.keys.map(key => `${key}:${this.items[key].join(',')}`)\n    }\n\n    get keys(): string[] {\n        return Object.keys(this.items);\n    }\n\n    get length(): number {\n        return this.keys.length;\n    }\n\n    contains(key): boolean {\n        key = String(key);\n        return !!(this.items[key] && this.items[key].length > 0);\n    }\n\n    containsKeys(keys: string[]) {\n        for (const key of keys) {\n            if (this.contains(key)) {\n                return true;\n            }\n        }\n\n        return false;\n    }\n}\n","import {Services} from '../services/Services';\nimport UserProfileService from '../../apps/userprofile/services/UserProfileService';\n\nexport function openModal(element_id) {\n    if (!document.getElementById(element_id)) {\n        console.error(`Unable to find modal with id ${element_id} to open. The value should not contain a query selector.`);\n        return\n    }\n\n    if (!document.getElementById('backdrop')) {\n        const backdrop = document.createElement('div');\n        backdrop.id = 'backdrop';\n        backdrop.classList.add('modal-backdrop');\n        document.body.appendChild(backdrop);\n    }\n\n    document.getElementsByTagName('body')[0].classList.add('modal-open');\n    document.getElementById('backdrop').classList.add('visible')\n\n    const el = document.getElementById(element_id);\n    if (!el) {\n        console.warn(`Unable to find modal with id ${element_id}`)\n        return;\n    }\n    el.classList.add('show');\n\n    // Add a even listener for clicking outside of the modal to close it\n    if (!el['modalClickOutside']) {\n        el['modalClickOutside'] = (event) => {\n            if (event.target?.id == element_id) {\n                closeModal(element_id);\n            }\n        }\n    }\n    el.addEventListener('mousedown', el['modalClickOutside']);\n}\n\nexport function closeModal(element_id) {\n    if (modal.lock[element_id]) {\n        if (modal.lock[element_id] > new Date().getTime()) {\n            console.warn('Modal locked');\n            return;\n        }\n    }\n\n    if (document.getElementById('backdrop')) {\n        document.getElementById('backdrop').classList.remove('visible')\n    }\n\n    document.getElementsByTagName('body')[0].classList.remove('modal-open');\n\n    const el = document.getElementById(element_id);\n    if (!el) {\n        console.warn(`Unable to find modal with id ${element_id}`)\n        return;\n    }\n    el.classList.remove('show');\n\n    // Clean up and remove the click outside event listener\n    if (el['modalClickOutside']) {\n        el.removeEventListener('click', el['modalClickOutside']);\n        el['modalClickOutside'] = null;\n    }\n}\n\n\nexport const modal = Object.create(null);\nmodal['open'] = openModal;\nmodal['close'] = closeModal;\nmodal['login'] = () => {\n    openModal('loginModal');\n}\nmodal['register'] = () => {\n    openModal('loginModal');\n    setTimeout(() => {\n        Services.get<UserProfileService>('UserProfileService').trigger('set-register-state');\n    })\n}\nmodal['lock'] = Object.create(null);\n\n// Global bindings so we can open and close them on demand\nwindow['modal'] = modal;\n","/*\n * A modified version of simple-ts-promise.\n *\n * The goal of this version is to separate out the reject functionality from catching exceptions. This way there\n * will be 3 channels; a successful event, a unsuccessful but handled event, and an unhandled exception.\n *\n * The rejection also now accepts any input and does not require a return result.\n */\n\n\nimport {EventDispatcher} from './EventDispatcher';\n\nexport interface IDeferred<T> {\n    [key: string]: any;\n    promise: SimplePromise<T>;\n    resolve(result?: T): void;\n    reject(reason?: any): void;\n}\n\nexport type TResolve<T> = (result: T) => void;\nexport type TReject = (reason: any) => void;\nexport type TResult<T> = T | null;\n\nexport enum EPromiseStates {\n    PENDING,\n    FULFILLED,\n    REJECTED\n}\n\nexport interface IPromise<T> extends EventDispatcher {\n    state: EPromiseStates;\n    result: TResult<T>;\n    then<X = T>(success?: (result?: T) => X, error?: (reason?: any) => any): IPromise<X>;\n    catch(onRejected: (reason: any) => any): IPromise<any>;\n    finally<X = T>(finallyCallback: (result: T | any) => X | any): IPromise<X>;\n    isResolved(): boolean;\n}\n\nexport function noop<T = any>(result?: T): T { return result as T; }\n\nexport class SimplePromise<T> extends EventDispatcher implements IPromise<T> {\n    protected _state: EPromiseStates;\n    protected _result: TResult<T>  = null;\n    private readonly promiseClass: typeof SimplePromise;\n\n    constructor(executor: (resolve: TResolve<T>, reject: TReject) => void) {\n        super();\n        this._state = EPromiseStates.PENDING;\n        this.promiseClass = (Object.getPrototypeOf(this).constructor);\n        executor(this._resolve.bind(this), this._reject.bind(this));\n    }\n\n    public isResolved(): boolean {\n        return this.state != EPromiseStates.PENDING;\n    }\n\n    public get state(): EPromiseStates {\n        return this._state;\n    }\n\n    public get result(): TResult<T> {\n        return this._result;\n    }\n\n    public static defer<T>(): IDeferred<T> {\n        const promise: SimplePromise<T> = new SimplePromise<T>((res, rej) => {});\n\n        return {\n            promise: promise,\n            resolve: promise._resolve.bind(promise),\n            reject: promise._reject.bind(promise)\n        };\n    }\n\n    /*\n     * Returns a Promise object that is resolved with the given value. If the value is a thenable (i.e. has a then\n     * method), the returned promise will \"follow\" that thenable, adopting its eventual state; otherwise the returned\n     * promise will be fulfilled with the value. Generally, if you don't know if a value is a promise or not,\n     * Promise.resolve(value) it instead and work with the return value as a promise.\n     */\n    public static resolve<T>(result?: T): IPromise<T> {\n        return new SimplePromise<T>((resolve: TResolve<T>): void => {\n            if (result instanceof SimplePromise) {\n                result.then((innerResult: T) => {\n                    resolve(innerResult);\n                });\n            } else {\n                resolve(result);\n            }\n        });\n    }\n\n    /*\n     * Returns a Promise object that is rejected with the given reason.\n     */\n    public static reject(reason: any): IPromise<void> {\n        return new SimplePromise<void>((resolve: TResolve<void>, reject: TReject): void => {\n            reject(reason);\n        });\n    }\n\n    /*\n     * Returns a promise that either fulfills when all of the promises in the iterable argument have fulfilled or\n     * rejects as soon as one of the promises in the iterable argument rejects. If the returned promise fulfills, it is\n     * fulfilled with an array of the values from the fulfilled promises in the same order as defined in the iterable.\n     * If the returned promise rejects, it is rejected with the reason from the first promise in the iterable that\n     * rejected. This method can be useful for aggregating results of multiple promises.\n     */\n    public static all<T>(iter: IPromise<T>[]): IPromise<T[]> {\n        const deferred: IDeferred<T[]> = SimplePromise.defer<T[]>();\n        let done: boolean = true;\n        for (const promise of iter) {\n            if (promise.state == EPromiseStates.PENDING) {\n                done = false;\n                promise.once('fulfilled', (result: T): void => {\n                    SimplePromise.poolResults(iter, deferred);\n                }, promise);\n\n                promise.once('rejected', (reason: any): void => {\n                    deferred.reject(reason);\n                }, promise);\n            } else if(promise.state == EPromiseStates.REJECTED) {\n                deferred.reject(promise.result);\n                done = false;\n                break;\n            }\n        }\n\n        if (done)\n            SimplePromise.poolResults(iter, deferred);\n\n        return deferred.promise;\n    }\n\n    public static poolResults<T>(iter: IPromise<T>[], deferred: IDeferred<T[]>) {\n        let done: boolean = true;\n        const results: T[] = [];\n        for (const p of iter) {\n            if (p.state === EPromiseStates.REJECTED) {\n                deferred.reject(p.result);\n                break;\n            } else if (p.state === EPromiseStates.PENDING) {\n                done = false;\n            }\n            results.push(p.result as T);\n        }\n        if (done)\n            deferred.resolve(results);\n    }\n\n    /*\n     * Returns a promise that fulfills or rejects as soon as one of the promises in the iterable fulfills or rejects,\n     * with the value or reason from that promise.\n     */\n    public static race<T>(iter: IPromise<T>[]): IPromise<T> {\n        const deferred: IDeferred<T> = SimplePromise.defer<T>();\n\n        for (const promise of iter) {\n            promise.once('fulfilled', (result: T) => {\n                deferred.resolve(result);\n            }, promise);\n\n            promise.once('rejected', (reason: any) => {\n                deferred.reject(reason);\n            }, promise);\n        }\n\n        return deferred.promise;\n    }\n\n    /*\n     * Appends fulfillment and rejection handlers to the promise, and returns a new promise resolving to the return\n     * value of the called handler, or to its original settled value if the promise was not handled (i.e. if the\n     * relevant handler onFulfilled or onRejected is not a function).\n     */\n    public then<X = T>(success?: (result: T) => X, error?: (reason: any) => void): IPromise<X> {\n        return new this.promiseClass<X>((resolve: TResolve<X>, reject: TReject): void => {\n            if (this.state === EPromiseStates.FULFILLED) {\n                if (success) {\n                    resolve(success(this.result as T));\n                }\n                else {\n                    resolve(this.result as any);\n                }\n            }\n            else if (this.state === EPromiseStates.REJECTED) {\n                if (error) {\n                    reject(error(this.result));\n                }\n                else {\n                    reject(this.result);\n                }\n            }\n            else {\n                this.once('fulfilled', (result: T): void => {\n                    if (success) {\n                        resolve(success(this.result as T));\n                    }\n                    else {\n                        resolve(this.result as any);\n                    }\n                }, this);\n\n                this.once('rejected', (reason: any): void => {\n                    if (error) {\n                        reject(error(reason));\n                    }\n                    else {\n                        reject(reason);\n                    }\n                }, this);\n            }\n        });\n    }\n\n    /*\n     * Appends a rejection handler callback to the promise, and returns a new promise resolving to the return value of\n     * the callback if it is called, or to its original fulfillment value if the promise is instead fulfilled.\n     */\n    public catch(onRejected: (reason: any) => void): IPromise<void> {\n        return this.then(undefined, onRejected);\n    }\n\n    /*\n     * Appends a handler to the promise, and returns a new promise which is resolved when the original promise is\n     * resolved. The handler is called when the promise is settled, whether fulfilled or rejected.\n     */\n    public finally<X = T>(finallyCallback: (result: T|any) => X | void): IPromise<X> {\n        const success: (r: T) => X = (result: T): X => finallyCallback(result) as X;\n        const error: (r: any) => void = (reason: any): any => finallyCallback(reason);\n\n        return this.then<X>(success, error);\n    }\n\n    protected _resolve(result: T): void {\n        if (this.state !== EPromiseStates.PENDING) return;\n        this._state = EPromiseStates.FULFILLED;\n        this._result = result;\n        this.trigger('fulfilled', result);\n    }\n\n    protected _reject(reason: any): void {\n        if (this.state !== EPromiseStates.PENDING) return;\n        this._state = EPromiseStates.REJECTED;\n        this._result = reason;\n        this.trigger('rejected', reason);\n    }\n}\n","// @ts-ignore\nSymbol.metadata ??= Symbol('Symbol.metadata');\nexport function metadata() {\n    // @ts-ignore\n    if (!Symbol.metadata) {\n        // @ts-ignore\n        Symbol.metadata = Symbol('Symbol.metadata')\n    }\n    // @ts-ignore\n    return Symbol.metadata;\n}","import {IPromise, SimplePromise} from './SimplePromise';\nimport {createApp} from 'vue';\nimport MessageList from './MessageList';\n\nexport function getInnerHeight(el): number {\n    if (!el) {\n        return 0;\n    }\n    let v = parseInt(window.getComputedStyle(el).getPropertyValue('height'));\n    return isNaN(v) ? 0 : v;\n}\n\nexport function getInnerWidth(el): number {\n    if (!el) {\n        return 0;\n    }\n    let v = parseInt(window.getComputedStyle(el).getPropertyValue('width'));\n    return isNaN(v) ? 0 : v;\n}\n\nexport function eventToFiles(event): File[] {\n    let files = [];\n    if (event.dataTransfer) {\n        if (event.dataTransfer.items) {\n            for (const file of event.dataTransfer.items) {\n                files.push(file.getAsFile());\n            }\n        } else if (event.dataTransfer.files) {\n            for (const file of event.dataTransfer.files) {\n                files.push(file);\n            }\n        }\n    }\n    else if (event.target && event.target.files) {\n        for (const file of event.target.files) {\n            files.push(file);\n        }\n    }\n    return files;\n}\n\n\nexport function httpParamSerializer(data) {\n    return Object.keys(data).map(k => encodeURIComponent(k) + '=' + encodeURIComponent(data[k])).join('&');\n}\n\nexport function copyToClipboard(text) {\n    // @ts-ignore\n    navigator.permissions.query({name: \"clipboard-write\"}).then((result) => {\n        if (result.state == \"granted\" || result.state == \"prompt\") {\n            navigator.clipboard.writeText(text);\n        }\n        else {\n            console.error('Copy to clipboard permission not granted.')\n        }\n    }).catch((error) => {\n        navigator.clipboard.writeText(text);\n    });\n}\n\nexport function isEmptyString(v) {\n    if (typeof v == 'string') {\n        if (v.trim() == '') {\n            return true;\n        }\n    }\n    return false;\n}\n\n/*\n    Clamp a number from user input based on a defined precision.\n\n    This must return the input (v) if its a empty string so that if a user clears the input field it won't\n    revert to 0 and prevent them from typing.\n */\nexport function clamp(v, precision=2): any {\n    if (isEmptyString(v)) {\n        return v;\n    }\n    return parseFloat(Number(v).toFixed(2));\n}\n\nexport function getClosestQuarter(length) {\n    if (length % 1 > .87) {\n        return Math.ceil(length);\n    }\n    else if (.87 >= length % 1 && length % 1 > .62) {\n        return Math.floor(length) + .75;\n    }\n    else if (.62 >= length % 1 && length % 1 > .37) {\n        return Math.floor(length) + .5;\n    }\n    else if (.37 >= length % 1 && length % 1 > .12) {\n        return Math.floor(length) + .25;\n    }\n    else if (.12 >= length % 1) {\n        return Math.floor(length);\n    }\n}\n\nexport function fitToArea(width, height, area, max_area= null) {\n    if (max_area == null) {\n        max_area = area;\n    }\n\n    const sqrt = Math.sqrt(width * height / area);\n    let w = width / sqrt;\n    let h = height / sqrt;\n    if (w * h > max_area) {\n        return fitToArea(width, height, area - 0.1);\n    }\n\n    return {width: w, height: h};\n}\n\nexport function fitInArea(areaW, areaH, w, h) {\n    if (w < h) {\n        w *= areaH / h;\n        h = areaH;\n        if (w > areaW) {\n            h *= areaW / w;\n            w = areaW;\n        }\n    } else /*if (w > h)*/ {\n        h *= areaW / w;\n        w = areaW;\n        if (h > areaH) {\n            w *= areaH / h;\n            h = areaH;\n        }\n    }\n    return [w, h];\n}\n\nexport function getOffset(element) {\n    if (!element) {\n        return;\n    }\n\n    let rect = element.getBoundingClientRect();\n\n    // Make sure element is not hidden (display: none) or disconnected\n    if ( rect.width || rect.height || element.getClientRects().length ) {\n        let doc = element.ownerDocument;\n        let docElem = doc.documentElement;\n\n        return {\n            top: rect.top + window.pageYOffset - docElem.clientTop,\n            left: rect.left + window.pageXOffset - docElem.clientLeft\n        };\n    }\n}\n\nexport function wait(time): IPromise<void> {\n    let deferred = SimplePromise.defer<void>();\n\n    setTimeout(() => {\n        deferred.resolve()\n    }, time);\n\n    return deferred.promise;\n}\n\nexport function kebabize(str: string) {\n   return str.split('').map((letter, idx) => {\n     return letter.toUpperCase() === letter\n      ? `${idx !== 0 ? '-' : ''}${letter.toLowerCase()}`\n      : letter;\n   }).join('');\n}\n\nexport function renderTemplateText(template: string, context: object) {\n    // We want to use the vue templating engine for generating descriptions based on the model so\n    // we have to mount a vue app to a div, let it render, and then grab the text and destroy the dom node.\n    if (!template) {\n        return '';\n    }\n\n    // New lines are removed so we need to replace them with some placeholder so we can add them back in later\n    template = template.split('\\n').join('|||nl|||');\n\n    context = {...context}\n    let text_content = '';\n\n    try {\n        let app = createApp({\n            data() {\n                return context;\n            }\n        })\n\n        let mounting_div = document.createElement('div');\n        mounting_div.innerText = template;\n        app.mount(mounting_div);\n\n        text_content = mounting_div.innerText;\n        text_content = text_content.split('|||nl|||').join('\\n');\n\n        app.unmount()\n        mounting_div.remove();\n    }\n    catch (e) {\n        console.error('Failed to render template.\\n', {template: template, context: context});\n        console.error(e);\n    }\n\n    return text_content;\n}\n\nexport function processRequestError(error, field?: string): MessageList {\n    if (!field) {\n        field = '__all__'\n    }\n\n    if (error && error.response && error.response.data) {\n        if (error.response.data['errors']) {\n            return new MessageList(error.response.data['errors']);\n        }\n        if (error.response.data['error']) {\n            return new MessageList({\n                [field]: [error.response.data['error'],]\n            })\n        }\n    }\n\n    let list = new MessageList({\n        [field]: ['An unknown error as occurred',]\n    })\n\n    if (error.code == '403') {\n        list.add(field, '403 - Unauthorized.');\n    }\n    else if (error.code == '408') {\n        list.add(field, '408 - Request timeout.');\n    }\n    else if (error.code == '413') {\n        list.add(field, '413 - Request too large.');\n    }\n    else if (error.code == '414') {\n        list.add(field, '414 - Request payload too long.');\n    }\n    else if (error.code == '429') {\n        list.add(field, '429 - Too many requests. Please try again later.');\n    }\n    else if (error.code == '502') {\n        list.add(field, '502 - Bad Gateway. Please try again later.');\n    }\n    else if (error.code == '503') {\n        list.add(field, '503 - Service unavailable. Please try again later.');\n    }\n    else if (error.code == '504') {\n        list.add(field, '504 - Gateway timeout. Please try again later.');\n    }\n    else {\n        list.add(field, `Network error code ${error.code}`);\n    }\n\n    return list;\n}\n\nexport function isInViewport(element) {\n    if (!element) {\n        return false;\n    }\n\n    const rect = element.getBoundingClientRect();\n    return (\n        rect.top >= 0 &&\n        rect.left >= 0 &&\n        Math.floor(rect.bottom) <= (window.innerHeight || document.documentElement.clientHeight) &&\n        Math.floor(rect.right) <= (window.innerWidth || document.documentElement.clientWidth)\n    );\n}\n\nexport function isPastElement(element, padding) {\n    if (!element) {\n        return false;\n    }\n\n    const rect = element.getBoundingClientRect();\n    return rect.top - padding <= 0;\n}\n\nexport function removeAll(item: string, ...keys: string[]): string {\n    for (const key of keys) {\n        item = item.split(key).join('');\n    }\n\n    return item;\n}\n\nexport function toFixedFloor(value: number, digits=2) {\n    let shift = Math.pow(10, digits);\n    return Math.floor(value * shift) / shift;\n}\n\nexport function toFixedCeil(value: number, digits=2) {\n    let shift = Math.pow(10, digits);\n    return Math.ceil(value * shift) / shift;\n}\n\nexport function toFixedCeilStable(value: number, digits=2) {\n    let shift = Math.pow(10, digits);\n    return Math.ceil(roundHalfUp(value * shift, 5)) / shift;\n}\n\n// Matches Money.quantize() on the backend\nexport function roundHalfUp(value, digits=2) {\n    let shift = Math.pow(10, digits);\n    return Math.round(value * shift) / shift;\n}\n\nexport function daysInMonth(month: number, year: number): number {\n    return new Date(year, month, 0).getDate();\n}\n\n// Given any string return a number, ex: 'test' => 3556498\nexport function hashCode(s: string) {\n    return s.split('').reduce((a,b) => (((a << 5) - a) + b.charCodeAt(0))|0, 0);\n}\n\nexport function userPrefersDarkMode(): boolean {\n    return window.matchMedia('(prefers-color-scheme: dark)').matches;\n}\n\nexport function isDarkModeSet() {\n    if (document.body.classList.contains('light')) {\n        return false;\n    }\n    if (document.body.classList.contains('dark')) {\n        return true;\n    }\n    return userPrefersDarkMode();\n}\n\nexport function mobileScreenSize(): boolean {\n    return window.matchMedia('(max-width: 767.99999px)').matches;\n}\n\nexport function xsScreenSize(): boolean {\n    return window.matchMedia('(max-width: 479.99999px)').matches;\n}\n\nexport function yieldThread(): Promise<void> {\n    if (\"scheduler\" in window && \"yield\" in (window.scheduler as any)) {\n        return (window.scheduler as any).yield();\n    }\n\n    // Fall back to setTimeout:\n    return new Promise((resolve) => {\n        setTimeout(resolve, 0);\n    });\n}\n\nexport function lockScreenOrientation(orientation: 'portrait'|'landscape') {\n    // This throws NotSupportedError on non-mobile devices if it's available\n    try {\n        if ('screen' in window && 'orientation' in screen.orientation) {\n            if ('lock' in screen.orientation) {\n                // Newer devices\n                (screen.orientation as any).lock('portrait');\n            } else if ('lockOrientation' in screen.orientation) {\n                // Older devices\n                (screen.orientation as any).lockOrientation('portrait');\n            }\n        }\n    } catch (e) {\n    }\n}\n\nexport function lerp(x: number, y: number, a: number) {\n    return x * (1 - a) + y * a\n}\n\nexport function damp(x: number, y: number, rate: number, delta_time: number) {\n    // Framerate independent lerp that moves from y to x at a given rate per second\n    return lerp(x, y, 1 - Math.pow(rate, delta_time));\n}\n\nexport function capitalizeFirstLetter(val: string) {\n    return String(val).charAt(0).toUpperCase() + String(val).slice(1);\n}\n\n// This should mirror the python range functionality\nexport function range(start: number, stop: number, step?: number) {\n    if (!step) {\n        step = 1;\n    }\n\n    if ((step > 0 && start >= stop) || (step < 0 && start <= stop)) {\n        return [];\n    }\n\n    let result = [];\n    for (let i = start; step > 0 ? i < stop : i > stop; i += step) {\n        result.push(i);\n    }\n\n    return result;\n}\n\nexport function websafe_decode(data: string) {\n    if (!data) {\n        return null;\n    }\n\n    // This was added at the same time as passkey, so we don't need a polyfill\n    // @ts-ignore\n    if (Uint8Array.fromBase64) {\n        // @ts-ignore\n        return Uint8Array.fromBase64(data.replace(/_/g, '/').replace(/-/g, '+'));\n    }\n\n    return null;\n}\n\nexport async function passkeySupported() {\n    // @ts-ignore\n    if (!Uint8Array.fromBase64) {\n        return false;\n    }\n\n    if (!window.PublicKeyCredential) {\n        return false;\n    }\n\n    if (!navigator.credentials || typeof navigator.credentials.get !== \"function\") {\n        return false;\n    }\n\n    if (typeof window.PublicKeyCredential.isUserVerifyingPlatformAuthenticatorAvailable !== \"function\") {\n        return false;\n    }\n\n    return await window.PublicKeyCredential.isUserVerifyingPlatformAuthenticatorAvailable();\n}\n\nexport function gotoAnchor() {\n    if (window.location.hash) {\n        const id = window.location.hash.slice(1);\n        const element = document.getElementById(id);\n\n        if (element) {\n            element.scrollIntoView();\n        }\n    }\n}","\nexport function uuid4(): string {\n    if (window['crypto'] && window['crypto']['randomUUID']) {\n        return crypto.randomUUID()\n    }\n\n    return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function(c) {\n        var r = Math.random()*16|0, v = c == 'x' ? r : (r&0x3|0x8);\n        return v.toString(16);\n    });\n}\n\nexport function simpleKey(length: number) {\n    // Characters: a-z0-9\n    let key = '';\n    for (var i = 0; i < length; i++) {\n        key += (Math.random()*16|0).toString(16);\n    }\n    return key;\n}","import {EventDispatcher} from '../utils/EventDispatcher';\n\n\nexport default class InjectedService extends EventDispatcher {\n    private readonly _injected:any[];\n\n    constructor(...args) {\n        super();\n        this._injected = args;\n        this._constructor();\n    }\n\n    protected _constructor() {}\n\n    injected<T>(name): T {\n        const $inject = (this.constructor as any).$inject as any[];\n        for(const i in $inject) {\n            if($inject[i] == name)\n                return this._injected[i];\n        }\n\n        console.trace();\n        console.error(`Unable to find dependency ${name}`);\n    }\n}\n","import InjectedService from './InjectedService';\n\n/*  Company\n\n    A simple service to store and load company information based on the app context.\n\n    This should be setup when the app loads so that the information can be used even during api server errors\n */\nexport default class Company extends InjectedService {\n    public name: string;\n    public phone: string;\n    public email: string;\n    public address: string;\n    public logo: string;\n    public short_name: string;\n    public short_url: string;\n    public facebook_url: string;\n    public yelp_url: string;\n    public google_url: string;\n    public pintrist_tracking_id: string;\n    public site_theme: string;\n    constructor() {\n        super();\n    }\n\n    setup(name: string, phone: string, email: string, address: string,\n          logo: string, short_name: string, short_url: string,\n          facebook_url: string, yelp_url: string, google_url: string, site_theme: string) {\n        this.name = name;\n        this.phone = phone;\n        this.email = email;\n        this.address = address;\n        this.logo = logo;\n        this.short_name = short_name;\n        this.short_url = short_url;\n        this.facebook_url = facebook_url;\n        this.yelp_url = yelp_url;\n        this.google_url = google_url;\n        this.site_theme = site_theme;\n    }\n}\n","import {Model} from '../models/Model';\nimport APIResponse from '../models/APIResponse';\nimport {Http} from './Http';\nimport {Services} from './Services';\nimport {EventDispatcher} from '../utils/EventDispatcher';\n\n\ninterface EventModelInterface {\n    model: string;\n    single: boolean;\n    data: any; // A single dehydrated model or a api response of multiple models\n}\n\ninterface EventInterface {\n    event: string;\n    data: any;\n    models: EventModelInterface[];\n}\n\nexport class SocketEvent {\n    public name;\n    public data: any;\n    public models: any;\n    private parent: SocketEventHandler;\n\n    constructor(parent, message: EventInterface) {\n        this.parent = parent;\n        this.name = message.event;\n        this.data = message.data;\n        this.models = this.parseModels(message.models);\n    }\n\n    public modelSet<T extends Model>(name: string): APIResponse<T> {\n        for (let data of this.models) {\n            if (data.model == name) {\n                return data.data;\n            }\n        }\n\n        return null;\n    }\n\n    public modelInstance<T extends Model>(name: string): T {\n        for (let data of this.models) {\n            if (data.model == name) {\n                return data.data;\n            }\n        }\n\n        return null;\n    }\n\n    private parseModels(models: EventModelInterface[]) {\n        if (!models) {\n            return [];\n        }\n\n        const parsed_data = [];\n        for (let model_data of models) {\n            if (model_data.model && Services.isRegistered(model_data.model)) {\n                const model = Services.get<typeof Model>(model_data.model);\n                if (model_data.single) {\n                    model_data.data = new model(model_data.data);\n                }\n                else {\n                    model_data.data = model.objects.from(model_data.data);\n                }\n            }\n            parsed_data.push(model_data)\n        }\n\n        return parsed_data;\n    }\n}\n\nexport default abstract class SocketEventHandler extends EventDispatcher {\n    protected abstract socket_url: string;\n    protected socket: WebSocket;\n    private _connecting: boolean;\n    private event_queue: any[];\n\n    constructor() {\n        super()\n        this.event_queue = [];\n        this.bindEvents();\n    }\n\n    abstract bindEvents();\n    protected onSocketOpen(){\n        this.trigger('sync');\n    }\n\n    protected onSocketClose(e) {\n       console.error(`Socket closed unexpectedly with code ${e.code}, reason: \"${e.reason}\"`);\n       console.error(e);\n       this._connecting = false;\n       this.trigger('disconnect');\n       this.trigger('sync');\n    }\n\n    public sendEvent(event, data) {\n        let event_data = {\n            'event': event,\n            'data': data\n        };\n\n        if (!this.socket) {\n            this.connect();\n            this.event_queue.push(event_data);\n            return;\n        }\n\n        if (this.socket.readyState == WebSocket.OPEN) {\n            this.sendEventData(event_data);\n        }\n        else {\n            this.event_queue.push(event_data);\n        }\n    }\n\n    public connect() {\n        if (this.connected || this.connecting) {\n            return;\n        }\n\n        this._connecting = true;\n        this.trigger('sync');\n\n        Services.get<Http>('$http').request({\n            url: '/chat/authorize/',\n            method: 'POST',\n            data: {}\n        }).then(this.sessionAuthSuccess.bind(this))\n          .catch(this.sessionAuthFailure.bind(this));\n    }\n\n    public disconnect() {\n        this.socket.close();\n        this.trigger('disconnect');\n    }\n\n    private sessionAuthSuccess() {\n        let url = (location.protocol === 'https:' ? 'wss://' : 'ws://') + window.location.host + this.socket_url;\n        const socket = new WebSocket(\n            url\n        );\n        this.socket = socket;\n\n        this.socket.onmessage = this.onSocketMessage.bind(this);\n        this.socket.onclose = (e) => {\n            // A previous connection may finish closing after a retry has started.\n            if (this.socket === socket) {\n                this.onSocketClose(e);\n            }\n        };\n        this.socket.onopen = this.initSocket.bind(this);\n\n        this._connecting = false;\n    }\n\n    private sessionAuthFailure(error) {\n        this._connecting = false;\n        console.error('Socket session authorization failed', error);\n        this.trigger('disconnect');\n        this.trigger('sync');\n    }\n\n    private onSocketMessage(e) {\n        const message = JSON.parse(e.data);\n\n        // Automatically populate models if they are injected in the service\n        if (message.event) {\n            this.trigger(message.event, new SocketEvent(this, message));\n\n            // Trigger a sync event for vue so all components using this in data will update\n            this.trigger('sync');\n        }\n        else {\n            console.error('Unknown message type');\n        }\n    }\n\n    private sendEventData(data) {\n        this.socket.send(JSON.stringify(data));\n    }\n\n    private sendQueuedEvents() {\n        for (let item of this.event_queue) {\n            this.sendEventData(item);\n        }\n    }\n\n    private initSocket() {\n        this.onSocketOpen();\n        this.sendQueuedEvents();\n    }\n\n    reconnect() {\n        if (this.socket) {\n            const socket = this.socket;\n            this.socket = null;\n            socket.close();\n        }\n\n        // Another tab may have changed the session since the last connection.\n        this.connect();\n    }\n\n    get connected() {\n        return !!(this.socket && this.socket.readyState == WebSocket.OPEN);\n    }\n\n    get connecting() {\n        return this._connecting || (this.socket && this.socket.readyState == WebSocket.CONNECTING);\n    }\n\n    get disconnected() {\n        return !this.socket || this.socket && this.socket.readyState == WebSocket.CLOSING || this.socket.readyState == WebSocket.CLOSED;\n    }\n}\n","import {Model} from '../models/Model';\nimport SocketEventHandler from './SocketEventHandler';\nimport APIResponse from '../models/APIResponse';\nimport {EventDispatcher} from '../utils/EventDispatcher';\n\nexport default class ModelSyncService extends SocketEventHandler {\n    protected socket_url: string = '/ws/staff/model-change-watcher/';\n\n    private models: Model[];\n    private queries: APIResponse<any>[];\n    private timeout_wait: number;\n\n    private change_sync_queue: any[];\n    private processing_queue: boolean;\n\n    constructor() {\n        super();\n\n        this.models = [];\n        this.queries = [];\n        this.change_sync_queue = [];\n        this.timeout_wait = 4000;\n    }\n\n    bindEvents() {\n        this.bind('notify.change', this.notifyModelsOfChange.bind(this), this);\n        this.bind('notify.addition', this.notifyModelsOfAddition.bind(this), this);\n    }\n\n    async process_queue() {\n        if (this.processing_queue) {\n            return\n        }\n        this.processing_queue = true;\n\n        while (this.change_sync_queue.length != 0) {\n            this.change_sync_queue.pop().onServerChange();\n        }\n\n        this.processing_queue = false\n    }\n\n    notifyModelsOfChange(event) {\n        for (const model of this.models) {\n            if (model.id == event.data.object_id && model.content_type_id == event.data.content_type_id) {\n                this.change_sync_queue.push(model);\n                this.process_queue();\n            }\n        }\n    }\n\n    notifyModelsOfAddition(event) {\n        for (const query of this.queries) {\n            // Double matching is probably overkill but it could prevent a very rare potential uuid collision\n            if (query.uuid == event.data.uuid && query.extra.content_type_id == event.data.content_type_id) {\n                query.onServerAddition(event.data.object_id);\n            }\n        }\n    }\n\n    registerModel(model, scope?: EventDispatcher) {\n        if (!model || !model.id || !model.content_type_id) {\n            return;\n        }\n\n        this.sendModelChangeSyncEvent(model);\n\n        if (scope && scope.bind) {\n            scope.bind('$destroy', () => {\n                this.deregisterModel(model);\n                model = null;  // clean up any potential memory leaks\n            }, scope);\n        }\n    }\n\n    private sendModelChangeSyncEvent(model) {\n        this.models.push(model);\n        model.sync_enabled = true;\n        this.sendEvent('sync.on.change', {\n            object_id: model.id,\n            content_type_id: model.content_type_id\n        });\n    }\n\n    registerQuery(api_response, $scope?) {\n        if (!api_response.extra || !api_response.extra.content_type_id) {\n            return;\n        }\n\n        this.sendQueryChangeEvent(api_response);\n\n        if ($scope) {\n            $scope.$on('$destroy', () => {\n                this.deregisterQuery(api_response);\n                api_response = null;  // clean up any potential memory leaks\n            })\n        }\n    }\n\n    private sendQueryChangeEvent(api_response: APIResponse<any>) {\n        this.queries.push(api_response);\n        this.sendEvent('sync.on.addition', {\n            content_type_id: api_response.extra.content_type_id,\n            search_filters: api_response.params,\n            uuid: api_response.uuid\n        });\n    }\n\n    public deregisterModel(model) {\n        if (!model) {\n            return;\n        }\n\n        model.sync_enabled = false;\n\n        if (this.models.indexOf(model) != -1) {\n            this.models.splice(this.models.indexOf(model), 1);\n        }\n\n        this.sendEvent('sync.unbind.change', {\n            object_id: model.id,\n            content_type_id: model.content_type_id\n        });\n    }\n\n    public deregisterQuery(api_response) {\n        if (!api_response) {\n            return;\n        }\n\n        if (this.queries.indexOf(api_response) != -1) {\n            this.queries.splice(this.queries.indexOf(api_response), 1);\n        }\n\n        this.sendEvent('sync.unbind.addition', {\n            content_type_id: api_response.extra.content_type_id,\n            search_filters: api_response.params\n        });\n    }\n\n    override onSocketClose(e) {\n        super.onSocketClose(e);\n        window.setTimeout(() => {\n            this.reconnect();\n\n            let _models = this.models;\n            let _queries = this.queries;\n\n            // Register everything again. Garbage collection / clean up listeners should still be in place until scope\n            // destroy.\n            this.models = [];\n            this.queries = [];\n            for (const item of _models) {\n                this.sendModelChangeSyncEvent(item);\n            }\n            for (const query of _queries) {\n                this.sendQueryChangeEvent(query);\n            }\n\n        }, this.timeout_wait);\n\n        // Exponential timeout\n        this.timeout_wait *= 2;\n    }\n}","import Cookies from 'js-cookie';\n\nexport default class CookieManager {\n    static enabled() {\n        return !!Cookies;\n    }\n    static get(key, json?) {\n        return Cookies.get(key, json);\n    }\n    static set(key, value, attributes?) {\n        return Cookies.set(key, value, attributes);\n    }\n    // Support for angular $cookies\n    static put(key, value, attributes?) {\n        CookieManager.set(key, value, attributes);\n    }\n    static getObject(key, json?) {\n        let v = this.get(key, json);\n        if (!v) {\n            return v;\n        }\n        return JSON.parse(this.get(key, json));\n    }\n    static putObject(key, value, attributes?) {\n        return CookieManager.setObject(key, value, attributes);\n    }\n    static setObject(key, value, attributes?) {\n        return CookieManager.set(key, JSON.stringify(value), attributes);\n    }\n    static remove(key, attributes?) {\n        return Cookies.remove(key, attributes);\n    }\n}","import axios, {AxiosRequestConfig, AxiosResponse} from 'axios';\nimport {IPromise, SimplePromise} from '../utils/SimplePromise';\n\nexport class Http {\n    constructor() {\n        axios.defaults.xsrfCookieName = 'csrftoken';\n        axios.defaults.xsrfHeaderName = 'X-CSRFToken';\n    }\n    private handleRequest(promise): IPromise<AxiosResponse> {\n        const deferred = SimplePromise.defer<AxiosResponse>();\n        promise.then((response) => {\n            deferred.resolve(response);\n        }).catch((error) => {\n            if (error.isAxiosError) {\n                deferred.reject(error);\n            }\n            else {\n                throw error;\n            }\n        })\n\n        return deferred.promise;\n    }\n    request(config: AxiosRequestConfig): IPromise<AxiosResponse> {\n        return this.handleRequest(axios.request(config));\n    }\n    get(url: string, config?: AxiosRequestConfig): IPromise<AxiosResponse> {\n        return this.handleRequest(axios.get(url, config));\n    }\n    delete(url: string, config?: AxiosRequestConfig): IPromise<AxiosResponse> {\n        return this.handleRequest(axios.delete(url, config));\n    }\n    post(url: string, data?: any, config?: AxiosRequestConfig): IPromise<AxiosResponse> {\n        return this.handleRequest(axios.post(url, data, config));\n    }\n    put(url: string, data?: any, config?: AxiosRequestConfig): IPromise<AxiosResponse> {\n        return this.handleRequest(axios.put(url, data, config));\n    }\n    patch(url: string, data?: any, config?: AxiosRequestConfig): IPromise<AxiosResponse> {\n        return this.handleRequest(axios.patch(url, data, config));\n    }\n}\n","import {Services} from './Services';\n\nexport class Route {\n    name: string;\n    path: string;\n\n    constructor(name, path) {\n        this.name = name;\n        this.path = path;\n    }\n\n    get uri_regexp() {\n        // Turn a uri into a regular expression so that we can test the current url against it.\n        // /dashboard/marketplace/products/:id/\n        // ^/dashboard/marketplace/products/[a-zA-Z0-9_-]+/$\n\n\n        // Match all uri parts (ex: /:id/)\n        let uri_placeholder_regex = /\\/:[a-zA-Z0-9_]+\\//g;\n\n        // Change all uri parts to match all alpha numeric and '_' '-' characters/\n        // Start with ^ and end with $ so that / does not match /foo/\n        return new RegExp('^' + this.path.split(uri_placeholder_regex).join('\\/[a-zA-Z0-9_-]+\\/') + '$');\n    }\n\n    get params(): Map<string, string> {\n        // Return type is a map to prevent against prototype pollution\n\n        let path = window.location.pathname;\n\n        let path_parts = path.split('/');\n        let route_parts = this.path?.split('/');\n\n        if (route_parts.length != path_parts.length) {\n            return new Map();\n        }\n\n        let data = new Map();\n        for (let i = 0; i < route_parts.length; i++) {\n            if (route_parts[i] != path_parts[i] && route_parts[i].indexOf(':') == 0) {\n                // Key defined in code so its safe\n                data.set(route_parts[i].replace(':', ''), path_parts[i]);\n            }\n        }\n\n        let url = new URL(String(window.location));\n        for (const parameter of url.searchParams.entries()) {\n            let key = parameter[0];\n            let value = parameter[1];\n\n            if (key && value && !data.get(key)) {\n                // Key is from user input, treat it as unsafe and try to block common attack vectors down stream\n                if (!key) {\n                    continue;\n                }\n\n                // Prevent any non alpha numeric or '-' or '_' characters\n                let regexp = /^[a-zA-Z0-9-_]+$/;\n                if (key.search(regexp) === -1) {\n                    continue;\n                }\n\n                // Restrict key words to prevent potential prototype pollution attacks\n                if (key.indexOf('proto') != -1 || key.indexOf('constructor') != -1 || key.indexOf('javascript') != -1) {\n                    continue;\n                }\n\n                data.set(key, value);\n            }\n        }\n\n        return data;\n    }\n}\n\nexport default class RouteService {\n    public routes: Route[];\n\n    constructor() {\n        this.routes = Services.get<Route[]>('RouteList');\n    }\n\n    public keywordArgumentList(): string[] {\n        let items  = [];\n        for (const route of this.routes) {\n            for (const item of this.parsePath(route.path)) {\n                items.push(item);\n            }\n        }\n\n        return items;\n    }\n\n    public keywordArgumentsFromName(name): string[] {\n        let route = this.getRouteFromName(name);\n\n        if (route) {\n            return this.parsePath(route.path);\n        }\n\n        return null;\n    }\n\n    get current() {\n        let path = window.location.pathname;\n        for (const item of this.routes) {\n            if (item.uri_regexp.test(path)) {\n                return item;\n            }\n        }\n\n        //console.warn('Unable to find a route for the current url. Make sure its registered.')\n        return new Route(window.location.pathname, window.location.pathname);\n    }\n\n    private parsePath(path): string[] {\n        let items = [];\n\n        let parts = path.split('/');\n        for (const part of parts) {\n            if (part.indexOf(':') === 0) {\n                items.push(part.split(':')[1]);\n            }\n        }\n\n        return items;\n    }\n\n    public getRouteFromName(name): Route {\n        for (const item of this.routes) {\n            if (item.name === name) {\n                return item;\n            }\n        }\n\n        return null;\n    }\n\n    get params(): URLSearchParams {\n        return new URL(window.location.href).searchParams;\n    }\n\n    updateUrlQuery(obj: any) {\n        if (Object.keys(obj).length > 0) {\n            let url = new URL(document.location.origin + document.location.pathname);\n\n            for (const key of Object.keys(obj)) {\n                let value = obj[key];\n                if (value instanceof Date) {\n                    value = value.toISOString()\n                }\n                url.searchParams.append(key, value);\n            }\n\n            history.pushState(obj, document.title, '?' + url.searchParams.toString())\n        }\n        else {\n            history.pushState(obj, document.title, window.location.pathname);\n        }\n\n    }\n}\n","import RouteService from './RouteService';\n\nexport default class NamedRouteService {\n    public static $inject: string[] = [\n        'RouteService'\n    ];\n\n    protected routeService: RouteService\n    constructor(routeService) {\n        this.routeService = routeService;\n    }\n\n    public reverse(name: string, kwargs?: {[key: string]: any}): string {\n        const route = this.routeService.getRouteFromName(name);\n\n        if (!route) {\n            return null;\n        }\n\n        if (!kwargs) {\n            return route.path;\n        }\n\n        const url_parts = route.path.split('/');\n\n        const used_keys = [];\n\n        for (const key of Object.keys(kwargs)) {\n            if (kwargs[key] == null) {\n                continue;\n            }\n            for (let i = 0; i < url_parts.length; i++) {\n                if (url_parts[i] === `:${key}*`) {\n                    url_parts[i] = kwargs[key];\n                    used_keys.push(key);\n                }\n                else if (url_parts[i] === `:${key}`) {\n                    url_parts[i] = encodeURIComponent(kwargs[key]);\n                    used_keys.push(key);\n                }\n            }\n        }\n\n        let base =  url_parts.join('/');\n\n        let has_leftovers = false;\n        let leftover_data = {};\n        for (const key of Object.keys(kwargs)) {\n            if (kwargs[key] == null) {\n                continue;\n            }\n            if (used_keys.indexOf(key) === -1) {\n                leftover_data[key] = kwargs[key];\n                has_leftovers = true;\n            }\n        }\n\n        if (has_leftovers) {\n            let encoded = \"\";\n            for (const key in leftover_data) {\n                if (encoded != \"\") {\n                    encoded += \"&\";\n                }\n                if (leftover_data[key] != ':page') {\n                    encoded += encodeURIComponent(key) + \"=\" + encodeURIComponent(leftover_data[key]);\n                }\n                else {\n                    encoded += encodeURIComponent(key) + \"=\" + leftover_data[key];\n                }\n\n            }\n            return base + '?' + encoded;\n        }\n        return base;\n\n    }\n}\n","import {AnalyticsTracking} from '../Analytics';\nimport {Order} from '../../../apps/order/models/Order';\nimport APIResponse from '../../models/APIResponse';\nimport {OrderedItem} from '../../../apps/order/models/OrderedItem';\nimport {Services} from '../Services';\nimport Company from '../Company';\n\nexport default class GTagTracking implements AnalyticsTracking {\n    get gtag() {\n        return window['gtag'];\n    }\n\n    trackAddedProductToCart(product_id, price, quantity) {\n        if (!this.gtag) {\n            return;\n        }\n\n        this.gtag('event', 'add_to_cart', {\n            items: [\n                {\n                    id: product_id,\n                    price: price,\n                    quantity: quantity\n                }\n            ]\n        })\n    }\n\n    get dataLayer(): any {\n        if (!window['dataLayer']) {\n            window['dataLayer'] = []\n        }\n\n        return window['dataLayer'];\n    }\n\n    addToDataLayer(value: any) {\n        if (!this.dataLayer)\n            return;\n\n        this.dataLayer.push(value);\n    }\n\n    trackCheckout(order: Order, ordered_items: APIResponse<OrderedItem>) {\n        if (!this.gtag) {\n            return;\n        }\n\n        let gtag_items = [];\n        for (const item of ordered_items.items) {\n            gtag_items.push({\n                id: item.product_sku,\n                name: item.product_name,\n                price: item.unit_price,\n                quantity: item.quantity\n            });\n        }\n\n        this.gtag('event', 'purchase', {\n            transaction_id: order.id,\n            value: order.total_gross,\n            shipping: order.total_shipping,\n            tag: 0,\n            currency: order.currency,\n            affiliation: Services.get<Company>('Company').short_name,\n            items: gtag_items\n        });\n\n        this.addToDataLayer({\n            event: 'orderConfirmation',\n            transactionId: order.id,\n            transactionType: 'sale',\n            transactionAffiliation: Services.get<Company>('Company').short_name,\n            transactionTotal: order.total_gross,\n            transactionShipping: order.total_shipping,\n            transactionCurrency: 'USD',\n            transactionProducts: gtag_items\n        });\n    }\n\n    trackEvent(category, action, label?, value?) {\n        if (!this.gtag) {\n            return;\n        }\n\n        this.gtag('event', action, {\n            event_category: category,\n            event_label: label,\n            value: value\n        })\n    }\n\n    trackPage(page: string, title?: string) {\n        // Automatically done on each page load\n    }\n\n    trackProductPage(sku, default_price) {\n        if (!this.gtag) {\n            return;\n        }\n\n        this.gtag('event', 'view_item', {\n            items: [\n                {\n                    id: sku,\n                    price: default_price\n                }\n            ]\n        });\n    }\n}\n","import {AnalyticsTracking} from '../Analytics';\nimport {Order} from '../../../apps/order/models/Order';\nimport APIResponse from '../../models/APIResponse';\nimport {OrderedItem} from '../../../apps/order/models/OrderedItem';\nimport {wait} from '../../utils/utils';\n\nexport default class VibeTracker implements AnalyticsTracking {\n    async vbpxCode() {\n        if (navigator && (navigator.doNotTrack == '1' || navigator['globalPrivacyControl'])) {\n            return null;\n        }\n\n        if (!window['vbpx']) {\n            while(!window['vbpx']) {\n                await wait(1000);\n            }\n        }\n\n        return window['vbpx'];\n    }\n\n    async trackCheckout(order: Order, ordered_items: APIResponse<OrderedItem>) {\n        let vibe = await this.vbpxCode();\n        if (!vibe) {\n            return;\n        }\n\n        vibe('event', 'purchase', {'price_usd': `${order.total_gross}`});\n    }\n\n    trackAddedProductToCart(product_id, price, quantity) {}\n    trackEvent(category, action, label?, value?) {}\n    trackPage(page: string, title?: string) {}\n    trackProductPage(sku, default_price) {}\n}","import {OrderedItem} from '../../apps/order/models/OrderedItem';\nimport APIResponse from '../models/APIResponse';\nimport {Order} from '../../apps/order/models/Order';\nimport GTagTracking from './trackers/GTag';\nimport VibeTracker from './trackers/Vibe';\n\nexport interface AnalyticsTracking {\n    trackPage(page: string, title?: string);\n    trackEvent(category, action, label?, value?);\n    trackCheckout(order: Order, ordered_items: APIResponse<OrderedItem>);\n    trackAddedProductToCart(product_id, price, quantity);\n    trackProductPage(sku, default_price);\n}\n\nexport class Analytics {\n    trackers: AnalyticsTracking[];\n\n    constructor() {\n        this.trackers = [\n            new GTagTracking()\n        ]\n        \n        if (window.location.origin == 'https://www.carstickers.com') {\n            this.trackers.push(new VibeTracker());\n        }\n    }\n\n    public trackPage(page: string, title?: string) {\n        for (const tracker of this.trackers) {\n            tracker.trackPage(page, title);\n        }\n    }\n\n    public trackEvent(category, action, label?, value?) {\n        for (const tracker of this.trackers) {\n            tracker.trackEvent(category, action, label, value);\n        }\n    }\n\n    public trackCheckout(order: Order, ordered_items: APIResponse<OrderedItem>) {\n        for (const tracker of this.trackers) {\n            tracker.trackCheckout(order, ordered_items);\n        }\n    }\n\n    public trackAddedProductToCart(product_id, price, quantity) {\n        for (const tracker of this.trackers) {\n            tracker.trackAddedProductToCart(product_id, price, quantity);\n        }\n    }\n\n    public trackProductPage(sku, default_price) {\n        setTimeout(() => {\n            for (const tracker of this.trackers) {\n                tracker.trackProductPage(sku, default_price);\n            }\n        })\n    }\n}\n","import {EventDispatcher} from '../utils/EventDispatcher';\n\n\nexport default class Debug extends EventDispatcher {\n    public mounted_list: string[];\n    public app_component_list: any;\n\n    constructor() {\n        super();\n\n        this.mounted_list = [];\n        this.app_component_list = {};\n    }\n}","import Axios, {AxiosRequestConfig, AxiosResponse} from 'axios';\nimport axios from 'axios';\nimport {IPromise, SimplePromise} from '../utils/SimplePromise';\n\n/*\n    A wrapped axios request that tracks upload progress. This should only be needed for uploading larger files.\n */\n\nexport class Upload {\n    promise: IPromise<AxiosResponse>;\n    progress: number = 0;\n    constructor(config: AxiosRequestConfig) {\n        this.promise = this.handleRequest(Axios.request(this.patchConfig(config)));\n    }\n\n    private handleRequest(promise): IPromise<AxiosResponse> {\n        const deferred = SimplePromise.defer<AxiosResponse>();\n        promise.then((response) => {\n            deferred.resolve(response);\n        }).catch((error) => {\n            if (error.isAxiosError) {\n                deferred.reject(error);\n            }\n            else {\n                throw error;\n            }\n        })\n\n        return deferred.promise;\n    }\n\n    patchConfig(config) {\n        let old_upload_progress = config['onUploadProgress'];\n\n        config['onUploadProgress'] = (progressEvent) => {\n            if (progressEvent.total) {\n                this.progress = (progressEvent.loaded / progressEvent.total) * 100;\n            }\n            else {\n                this.progress = 0;\n            }\n\n            if (old_upload_progress) {\n                old_upload_progress(progressEvent);\n            }\n        }\n\n        return config;\n    }\n\n    get percent() {\n        return this.progress;\n    }\n}\n\nexport class HttpUpload {\n    constructor() {\n        axios.defaults.xsrfCookieName = 'csrftoken';\n        axios.defaults.xsrfHeaderName = 'X-CSRFToken';\n    }\n\n    request(config: AxiosRequestConfig): Upload {\n        return new Upload(config);\n    }\n}","/*\n    A basic polyfill for when cookies are not enabled but we don't want to throw exceptions when setting one\n */\nexport default class BasicStorageManager {\n    private data: Map<string, any>;\n\n    constructor() {\n        this.data = new Map<string, any>();\n    }\n\n    get(key, json?) {\n        return this.data.get(key);\n    }\n\n    set(key, value, attributes?) {\n        return this.data.set(key, value);\n    }\n\n    // Support for angular $cookies\n    put(key, value, attributes?) {\n        this.set(key, value, attributes);\n    }\n\n    getObject(key, json?) {\n        return this.data.get(key)\n    }\n\n    putObject(key, value, attributes?) {\n        return this.data.set(key, value);\n    }\n\n    setObject(key, value, attributes?) {\n        return this.data.set(key, value);\n    }\n\n    remove(key, attributes?) {\n        this.data.delete(key);\n    }\n}","import {Services} from './Services';\nimport UserProfileService from '../../apps/userprofile/services/UserProfileService';\nimport {EventDispatcher} from '../utils/EventDispatcher';\n\n// Fallback for when local and session storage is not available for whatever reason\nclass InstanceStorage implements Storage {\n    data: Map<string, string>;\n\n    constructor() {\n        this.data = new Map();\n    }\n\n    get length() {\n        return Object.keys(this.data).length;\n    }\n\n    clear(): void {\n        this.data = new Map();\n    }\n\n    getItem(key: string): string | null {\n        return this.data.get(key);\n    }\n\n    key(index: number): string | null {\n        return Object.keys(this.data)[index];\n    }\n\n    removeItem(key: string): void {\n        this.data.delete(key);\n    }\n\n    setItem(key: string, value: string): void {\n        this.data.set(key, value);\n    }\n}\n\ntype StorageObject = {\n    expiration: Date | null,\n    value: any,\n    user: number\n}\n\nexport class LocalStorage extends EventDispatcher {\n    private readonly storage: Storage;\n    private readonly prefix = 'sls-';\n\n    constructor() {\n        super();\n\n        if (this.storageAvailable('localStorage')) {\n            this.storage = window.localStorage;\n        }\n        else if (this.storageAvailable('sessionStorage')) {\n            this.storage = window.sessionStorage;\n        }\n        else {\n            console.warn('No local storage is available. Objects will only be saved within the session.');\n            this.storage = new InstanceStorage();\n        }\n\n        setTimeout(() => {\n            this.clearExpired();\n        });\n    }\n\n    public keys() {\n        let keys;\n        if (this.storage instanceof InstanceStorage) {\n            keys = Object.keys(this.storage.data);\n        }\n        else {\n            keys = Object.keys(this.storage);\n        }\n\n        return [...keys].filter(v => v.startsWith(this.prefix)).map(v => v.slice(4));\n    }\n\n    private formatKey(key) {\n        return `${this.prefix}${key}`;\n    }\n\n    public get(key: string) {\n        if (!key) {\n            return;\n        }\n\n        key = this.formatKey(key);\n        let data = this.storage.getItem(key);\n\n        let parsed: StorageObject;\n        try {\n            parsed = JSON.parse(data);\n\n            if (parsed.expiration) {\n                parsed.expiration = new Date(parsed.expiration);\n            }\n        }\n        catch (e) {\n            return null;\n        }\n\n        if (parsed.expiration && parsed.expiration.getTime() < new Date().getTime()) {\n\n            this.storage.removeItem(key);\n            return null;\n        }\n\n        if (parsed.user != Services.get<UserProfileService>('UserProfileService').user?.id) {\n            return null;\n        }\n\n        return parsed.value;\n    }\n\n    public set(key: string, value: any, expiration?: Date | null) {\n        if (!key) {\n            return;\n        }\n\n        // Pass null explicitly for records that must remain until removed.\n        if (expiration === undefined) {\n            // Store things by default for only 30 days, so it doesn't build up too much\n            expiration = new Date(new Date().getTime() + (1000 * 60 * 60 * 24 * 30)) // 30 days;\n        }\n\n        key = this.formatKey(key);\n\n        let data: StorageObject = {\n            value: value,\n            expiration: expiration,\n            user: Services.get<UserProfileService>('UserProfileService').user?.id\n        }\n\n        this.storage.setItem(key, JSON.stringify(data));\n    }\n\n    public remove(key: string) {\n        if (!key) {\n            return;\n        }\n\n        this.storage.removeItem(this.formatKey(key));\n    }\n\n    public clearExpired() {\n        for (const key of this.keys()) {\n            this.get(key);\n        }\n    }\n\n    private storageAvailable(type) {\n        let storage;\n        try {\n            storage = window[type];\n            const x = '__storage_test__';\n            storage.setItem(x, x);\n            storage.removeItem(x);\n            return true;\n        }\n        catch (e) {\n            return false;\n        }\n    }\n}\n","import SocketEventHandler, {SocketEvent} from '../../../core/services/SocketEventHandler';\nimport {ChatLine} from '../models/ChatLine';\nimport {ChatEvent} from '../models/ChatEvent';\nimport {ChatFile} from '../models/ChatFile';\nimport {ChatItemAbstract} from '../models/ChatItemAbstract';\nimport {ChatRoom} from '../models/ChatRoom';\nimport MessageList from '../../../core/utils/MessageList';\nimport {Http} from '../../../core/services/Http';\nimport {Services} from '../../../core/services/Services';\nimport CookieManager from '../../../core/services/CookieManager';\nimport UserProfileService from '../../userprofile/services/UserProfileService';\n\nexport enum ChatState {\n    LOADING,\n    COLLECTING_INFO,\n    WAITING_FOR_REP,\n    OUT_OF_OFFICE,\n    CLOSING,\n    WAITING_TIMEOUT,\n    DISCONNECTED,\n    RECONNECTING,\n    IN_CHAT,\n    CHAT_CLOSED,\n    OFFLINE_MESSAGE_SENT,\n}\n\nexport default abstract class BaseChatService extends SocketEventHandler {\n    protected abstract override socket_url: string;\n\n    // History\n    public chat_lines: ChatLine[];\n    public chat_events: ChatEvent[];\n    public chat_files: ChatFile[];\n    public history: ChatItemAbstract[];\n    protected _chat_room: ChatRoom;\n\n    public out_of_office: boolean;\n    public leaving_message: boolean;\n    public attempting_to_close: boolean;\n    public has_waited_too_long: boolean;\n    public ok_waiting: boolean;\n    public offline_message_sent: boolean;\n\n    // Upload File\n    private file: any;\n    public in_upload_state: boolean;\n\n    // Typing signal\n    private _chat_input: string;\n    private last_typing_update: Date;\n    public users_typing: any[];\n\n    // Other states\n    public opened: boolean;\n    public _minimized: boolean;\n\n    private wait_timeout: any;\n    private max_wait_time = 1000 * 60 * 5;\n\n    protected error_list: MessageList;\n    public upload_percent: number;\n\n    private static _new_message = null;\n    static get new_message() {\n        if (!this._new_message) {\n            this._new_message = new Audio('/static/audio/new-message.mp3');\n        }\n        return this._new_message;\n    }\n\n    private static _new_chat = null;\n    static get new_chat() {\n        if (!this._new_chat) {\n            this._new_chat = new Audio('/static/audio/new-chat.mp3');\n        }\n        return this._new_chat;\n    }\n\n    get minimized() {\n        return this._minimized;\n    }\n\n    set minimized(v) {\n        this._minimized = v;\n\n        Services.get<typeof CookieManager>('$cookies').set('chat_active', !this._minimized);\n    }\n\n    get chat_room() {\n        return this._chat_room;\n    }\n    set chat_room(v) {\n        this._chat_room = v;\n        this._chat_room?.bind('sync', () => {\n            this.trigger('sync');\n        }, this);\n    }\n\n    setupFile(file) {\n        this.file = file;\n        return this.uploadFile();\n    }\n\n    inOverlayState() {\n        return false;\n    }\n\n\n    uploadFile() {\n        let formData = new FormData();\n        formData.append('file', this.file);\n        formData.append('chat_room', String(this.chat_room.id));\n        return Services.get<Http>('$http').request(\n            {\n                url: '/chat/api/upload-file/',\n                data: formData,\n                method: 'POST',\n                headers: {\n                    'Content-Type': 'multipart/form-data'\n                },\n                onUploadProgress: (progressEvent) => {\n                    if (progressEvent.total) {\n                        this.upload_percent = (progressEvent.loaded / progressEvent.total) * 100;\n                    }\n                    else {\n                        this.upload_percent = 0;\n                    }\n                }\n            }\n        ).then((response) => {\n            this.file = null;\n            this.in_upload_state = false;\n        }, (response) => {\n            this.file = null;\n            this.in_upload_state = false;\n            return response\n        });\n    }\n\n    updateChatRoom(customer_name, email, description) {\n        this.error_list = new MessageList();\n        if (!customer_name || customer_name.trim() == '') {\n            this.error_list.add('customer-name', 'This field is required.');\n        }\n        if (!email || email.trim() == '') {\n            this.error_list.add('email', 'This field is required.');\n        }\n        if (!description || description.trim() == '') {\n            this.error_list.add('description', 'This field is required.')\n        }\n        if (this.error_list.length != 0) {\n            return;\n        }\n\n        this.chat_room.description = description;\n        this.sendEvent('chat.set.description', {\n            'description': this.chat_room.description,\n            'customer_name': customer_name,\n            'email': email,\n            'screen_size': `${screen.width}x${screen.height}`\n        });\n\n        if (this.out_of_office) {\n            this.leave_chat();\n            return;\n        }\n\n        this.has_waited_too_long = false;\n        if (this.wait_timeout) {\n            clearTimeout(this.wait_timeout);\n        }\n\n        this.wait_timeout = setTimeout(() => {\n            this.has_waited_too_long = true;\n        }, this.max_wait_time); // 5 minutes\n    }\n\n    protected override onSocketOpen() {\n        super.onSocketOpen();\n        this.reset();\n    }\n\n    protected override onSocketClose(e) {\n        this.reset();\n        super.onSocketClose(e);\n    }\n\n    reset() {\n        this.chat_lines = [];\n        this.chat_events = [];\n        this.chat_files = [];\n        this.history = [];\n        this.users_typing = [];\n        this.out_of_office = false;\n        this.leaving_message = false;\n        this.attempting_to_close = false;\n        this.has_waited_too_long = false;\n        this.ok_waiting = false;\n        this.offline_message_sent = false;\n        this.file = null;\n        this.in_upload_state = false;\n\n        if (this.wait_timeout) {\n            clearTimeout(this.wait_timeout);\n            this.wait_timeout = null;\n        }\n    }\n\n    bindEvents() {\n        this.bind('chat.display', this.display.bind(this), this);\n        this.bind('chat.update_history', this.update_history.bind(this), this);\n        this.bind('chat.event', this.chat_event.bind(this), this);\n        this.bind('chat.is_typing', this.person_is_typing.bind(this), this);\n        this.bind('chat.closed', () => {this.chat_room.closed = true}, this);\n        this.bind('chat.offline', () => {this.out_of_office = true;}, this);\n        this.bind('chat.uploaded-file', this.display_file.bind(this), this)\n    }\n\n    public update_chat_room(chat_room) {\n        this.chat_room = chat_room;\n        this.chat_room.enableSync(null);\n\n        this.chat_room.bind('sync-reload', () => {\n            this.trigger('sync');\n        }, this);\n\n        this.trigger('sync');\n    }\n\n    protected update_history(event: SocketEvent) {\n        this.update_chat_room(event.modelInstance<ChatRoom>('ChatRoom'));\n\n        const chat_history = event.modelSet<ChatLine>('ChatLine');\n        for (const item of chat_history.items) {\n            this.chat_lines.push(item);\n            this.history.push(item);\n        }\n\n        const event_history = event.modelSet<ChatEvent>('ChatEvent');\n        for (const item of event_history.items) {\n            this.chat_events.push(item);\n            this.history.push(item);\n        }\n\n        const chat_files = event.modelSet<ChatFile>('ChatFile');\n        for (const item of chat_files.items) {\n            this.chat_files.push(item);\n            this.history.push(item);\n        }\n\n        this.sort();\n        this.trigger('initialized');\n    }\n\n    protected display(event: SocketEvent) {\n        const history = event.modelInstance<ChatLine>('ChatLine');\n        this.chat_lines.push(history);\n        this.history.push(history);\n\n        if (!this.isSelf(history)) {\n            BaseChatService.play_sound(history, 'new-message');\n        }\n\n        this.chat_room.new_messages += 1;\n        this.chat_room.trigger('new-message');\n\n        this.clear_typing_events(history.user_identifier);\n        this.sort();\n    }\n\n    public static play_sound(item, element) {\n        // We only want one sound event for all of the windows/tabs that are open so we need to use a shared\n        // storage to see what has played. We only have 4096 bytes if the browser only supports basic cookies.\n        // If its a modern browser we will have around 10mb but lets assume the worse and hope for the best.\n        let played_sounds = Services.get<typeof CookieManager>('$cookies').getObject('sound-events') || [];\n\n        // Remove old events, we don't have much memory to work with so lets keep it small\n        let now = new Date();\n        let update_sounds = [];\n        for (let event of played_sounds) {\n            // If the item is less than 10 seconds old, keep it in the list\n            if (event.date + 5000 > now.getTime()) {\n                update_sounds.push(event);\n            }\n        }\n\n        played_sounds = update_sounds;\n\n        let found = false;\n        for (let event of played_sounds) {\n            if (item.id == event.id && item.type == event.type) {\n                found = true;\n                break\n            }\n        }\n\n        if (!found) {\n            played_sounds.push({\n                id: item.id,\n                date: (new Date()).getTime(),\n                type: item.type\n            })\n\n            if (element == 'new-message') {\n                BaseChatService.new_message.play();\n            }\n            if (element == 'new-chat-sound') {\n                BaseChatService.new_chat.play();\n            }\n        }\n\n        Services.get<typeof CookieManager>('$cookies').putObject('sound-events', played_sounds);\n    }\n\n    protected display_file(event: SocketEvent) {\n        const file = event.modelInstance<ChatFile>('ChatFile');\n        this.chat_files.push(file);\n        this.history.push(file);\n\n        if (!this.isSelf(file)) {\n            BaseChatService.play_sound(file, 'new-message');\n        }\n\n        this.sort();\n    }\n\n    downloadFile(item) {\n        // todo: implement this if its used\n    }\n\n    protected chat_event(event: SocketEvent) {\n        const chat_event = event.modelInstance<ChatEvent>('ChatEvent');\n        this.chat_events.push(chat_event);\n        this.history.push(chat_event);\n        this.sort();\n    }\n\n    send() {\n        if (!this.chat_input || this.chat_input.trim() == '') {\n            this.chat_input = '';\n            return;\n        }\n\n        this.sendEvent('chat.message', {\n            'message': this.chat_input\n        });\n\n        this.chat_input = '';\n    }\n\n    private send_typing_event() {\n        if (!this.last_typing_update) {\n            this.last_typing_update = new Date()\n        }\n\n        let now = new Date();\n        if (Number(now) - Number(this.last_typing_update) > 1000) {\n            this.last_typing_update = new Date();\n            this.sendEvent('chat.typing', {})\n        }\n    }\n\n    clear_typing_events(user_identifier) {\n        let to_remove = [];\n        for (let item of this.users_typing) {\n            if (item.user_identifier == user_identifier) {\n                to_remove.push(item);\n            }\n        }\n        for (let item of to_remove) {\n            this.users_typing.splice(this.users_typing.indexOf(item), 1)\n        }\n    }\n\n    person_is_typing(event: SocketEvent) {\n        this.clear_typing_events(event.data.user_identifier);\n\n        this.users_typing.push(event.data);\n\n        setTimeout(() => {\n            let index = this.users_typing.indexOf(event.data);\n            if (index != -1) {\n                this.users_typing.splice(this.users_typing.indexOf(event.data), 1);\n            }\n            this.trigger('data-changed');\n            this.trigger('sync');\n        }, 2000);\n\n        this.trigger('data-changed');\n    }\n\n\n    get chat_input() {\n        return this._chat_input;\n    }\n\n    set chat_input(v) {\n        if (v != this._chat_input) {\n            this.send_typing_event();\n        }\n        this._chat_input = v;\n    }\n\n    private sort() {\n        let compare = (a, b) => {\n            return a.date - b.date;\n        };\n\n        this.chat_lines.sort(compare);\n        this.chat_events.sort(compare);\n        this.chat_files.sort(compare);\n        this.history.sort(compare);\n\n        this.trigger('data-changed');\n    }\n\n    get chat_opened() {\n        return this.chat_room && this.chat_room.opened;\n    }\n\n    leave_chat() {\n        this.sendEvent('close-chat', {});\n        this.offline_message_sent = true;\n    }\n\n    close_chat() {\n        this.trigger('close-chat');\n        this.chat_room = null;\n        this.disconnect();\n        this.socket = null;\n        this.reset();\n    }\n\n    state_override;\n\n    get state() {\n        if (this.state_override) {\n            return this.state_override;\n        }\n\n        if (this.disconnected && !this.connecting) {\n            return ChatState.DISCONNECTED;\n        }\n\n        if (this.connecting) {\n            return ChatState.LOADING;\n        }\n\n        // Only thing left should be connected but lets check for it anyway\n        if (!this.connected) {\n            return ChatState.LOADING;\n        }\n\n        // Socket opened but waiting on the server to assign us a chat room\n        if (!this.chat_room) {\n            return ChatState.LOADING;\n        }\n\n        if (this.offline_message_sent) {\n            return ChatState.OFFLINE_MESSAGE_SENT;\n        }\n\n        // Chat room has been closed and the chat ended\n        if (this.chat_room.closed) {\n            return ChatState.CHAT_CLOSED;\n        }\n\n        if (this.attempting_to_close) {\n            return ChatState.CLOSING;\n        }\n\n        if (this.out_of_office && !this.leaving_message) {\n            return ChatState.OUT_OF_OFFICE;\n        }\n\n        // Chat room has not been opened by the customer yet, collecting info\n        if (!this.chat_room.opened) {\n            return ChatState.COLLECTING_INFO;\n        }\n\n        if (this.has_waited_too_long && !this.ok_waiting) {\n            return ChatState.WAITING_TIMEOUT;\n        }\n\n        // Chat room has been opened but no customer service agent has been assigned\n        if (this.chat_room.opened && !this.chat_room.customer_service_name) {\n            if (!this.wait_timeout && !this.ok_waiting) {\n                this.wait_timeout = setTimeout(() => {\n                    this.has_waited_too_long = true;\n                }, this.max_wait_time);\n            }\n\n            return ChatState.WAITING_FOR_REP;\n        }\n\n        // Chat has been opened and they are assigned to a rep\n        return ChatState.IN_CHAT;\n    }\n\n    get chat_disabled() {\n        return false;\n    }\n\n    isSelf(message) {\n        if (Services.get<UserProfileService>('UserProfileService').user) {\n            return message.user_identifier == `${Services.get<UserProfileService>('UserProfileService').user.id}`;\n        }\n        else {\n            return message.user_identifier && `${message.user_identifier}`.indexOf('S-') != -1;\n        }\n    }\n}\n","import BaseChatService from './BaseChatService';\n\nexport default class ChatService extends BaseChatService {\n    protected socket_url = '/ws/chat/client/';\n\n    override onSocketOpen() {\n        super.onSocketOpen();\n        this.sendEvent('log.page', {\n            'url': window.location.href\n        });\n    }\n}","import APIResponse from '../../../core/models/APIResponse';\nimport {MetricOptions, User} from '../models/User';\nimport {Http} from '../../../core/services/Http';\nimport {Services} from '../../../core/services/Services';\nimport CookieManager from '../../../core/services/CookieManager';\nimport {EventDispatcher} from '../../../core/utils/EventDispatcher';\n\nexport default class UserProfileService extends EventDispatcher {\n    public user: User;\n    private users: APIResponse<User>;\n    public login_redirect;\n\n    public metric_option: MetricOptions;\n\n    constructor() {\n        super();\n\n        let user_element = document.getElementById(\"user-data\")\n        if (user_element && user_element.textContent) {\n            let data = JSON.parse(atob(user_element.textContent.replace(/(\\r\\n\\t|\\n|\\r\\t|\\s)/gm, '')));\n            if (data) {\n                this.user = new (Services.get<typeof User>('User'))(data);\n                this.metric_option = this.user.metric_option;\n            }\n        }\n\n        // Support for guests\n        if (!this.metric_option) {\n            let option = Services.get<typeof CookieManager>('$cookies').get('measurement');\n            if (option == MetricOptions.IMPERIAL || option == MetricOptions.METRIC) {\n                this.metric_option = option;\n            }\n        }\n\n        if (!this.metric_option) {\n            this.metric_option = MetricOptions.IMPERIAL;\n        }\n    }\n\n    loggedIn(): boolean {\n        return !!this.user\n    }\n\n    updateSubscriptionPreferences(subscribe: boolean) {\n        this.user.is_marketing_eligible = subscribe;\n        return Services.get<Http>('$http').request({\n            url: '/profile/api/subscription-update/',\n            method: 'POST',\n            data: {\n                marketing: subscribe\n            }\n        }).then((response) => {\n            this.user.reload();\n        }, (response) => {\n            this.user.reload();\n\n            return response;\n        });\n    }\n\n    updateMetricOption() {\n        if (this.user) {\n            Services.get<Http>('$http').request({\n                url: '/profile/api/metric-option-update/',\n                method: 'POST',\n                data: {\n                    option: this.metric_option\n                }\n            });\n        }\n        else {\n            Services.get<typeof CookieManager>('$cookies').set('measurement', this.metric_option);\n        }\n\n        this.trigger('sync');\n    }\n\n    get conversion_ratio() {\n        return this.metric_option == MetricOptions.METRIC ? 2.54 : 1\n    }\n\n    formatMeasurement(inches) {\n        return `${this.convertSizeFromInches(inches)}${this.size_notation}`\n    }\n\n    convertSizeFromInches(inches) {\n        return inches * this.conversion_ratio;\n    }\n\n    convertSizeToInches(inches) {\n        return inches / this.conversion_ratio;\n    }\n\n    metric() {\n        return this.metric_option == MetricOptions.METRIC;\n    }\n\n    get size_label() {\n        if(this.metric_option == MetricOptions.METRIC) {\n            return 'cm'\n        }\n        else {\n            return 'inch'\n        }\n    }\n\n    get size_notation() {\n        if(this.metric_option == MetricOptions.METRIC) {\n            return 'cm'\n        }\n        else {\n            return '\"'\n        }\n    }\n}\n","import {UserAddress} from '../models/UserAddress';\nimport APIResponse from '../../../core/models/APIResponse';\nimport {Http} from '../../../core/services/Http';\nimport {Services} from '../../../core/services/Services';\nimport {AdminUserAddress} from '../../../../../dashboard/ts/apps/userprofile/models/AdminUserAddress';\nimport {EventDispatcher} from '../../../core/utils/EventDispatcher';\n\nexport default class UserAddressService extends EventDispatcher {\n    public addresses: APIResponse<UserAddress>;\n    public countries: string[];\n\n    private fetchingCountries: boolean;\n    private statesMap: {};\n    private loadedStatesMap: {};\n    private assigned_user: number;\n    private assigned_guest: number;\n    public allow_all: boolean = true;\n\n    public page: number = 1;\n    public limit: number = 5;\n    public pagination_callback: (page?: number) => void;\n    private fetch: APIResponse<UserAddress>;\n\n    constructor() {\n        super();\n        this.fetchingCountries = false;\n        this.statesMap = {};\n        this.loadedStatesMap = {};\n\n        let address_element = document.getElementById(\"address-data\");\n        if (address_element && address_element.textContent) {\n            let data = JSON.parse(atob(address_element.textContent.replace(/(\\r\\n\\t|\\n|\\r\\t|\\s)/gm, '')));\n            if (data) {\n                this.addresses = Services.get<typeof UserAddress>('UserAddress').objects.from(data);\n            }\n        }\n\n        this.pagination_callback = (page?) => {\n            if (page) {\n                this.page = page;\n            }\n            this.fetchAddresses(true);\n        }\n    }\n\n    public assignUser(id) {\n        this.assigned_guest = null;\n        if (this.assigned_user != id) {\n            this.assigned_user = id;\n            this.fetchAddresses(true);\n        }\n    }\n\n    public assignGuest(id) {\n        this.assigned_user = null;\n        if (this.assigned_guest != id) {\n            this.assigned_guest = id;\n            this.fetchAddresses(true);\n        }\n    }\n\n    public unsetUser() {\n        this.assigned_user = null;\n        this.fetchAddresses(true);\n    }\n\n    public fetchAddresses(reload?) {\n        if (!this.addresses || reload) {\n            if (this.assigned_user) {\n                this.fetch = Services.get<typeof AdminUserAddress>('UserAddress').objects.filter({customer: this.assigned_user, archived: false});\n            }\n            else if (this.assigned_guest) {\n                this.fetch = Services.get<typeof AdminUserAddress>('UserAddress').objects.filter({guest: this.assigned_guest, archived: false});\n            }\n            else {\n                if (this.allow_all) {\n                    this.fetch = Services.get<typeof AdminUserAddress>('UserAddress').objects.filter({\n                        limit: this.limit,\n                        offset: this.limit * (this.page - 1),\n                        order_by: '-id'\n                    });\n                }\n                else {\n                    this.fetch = Services.get<typeof AdminUserAddress>('UserAddress').objects.none()\n                }\n            }\n\n            // Only update results when we get the data\n            let _fetch = this.fetch;\n            if (!this.addresses) {\n                this.addresses = this.fetch;\n            }\n            this.fetch.$promise.then(() => {\n                if (this.fetch == _fetch && this.addresses != this.fetch) {\n                    this.addresses = this.fetch;\n                    this.fetch = null;\n                }\n\n                this.trigger('loaded:addresses');\n                this.trigger('sync');\n            });\n        }\n    }\n\n    public fetchCountries() {\n        if (this.countries) {\n            return;\n        }\n\n        this.countries = [];\n        Services.get<Http>('$http').request({\n            method: 'GET',\n            url: '/delivery/api/get-countries/'\n        }).then((response: any) => {\n            this.countries = response.data.countries;\n            this.trigger('loaded:countries');\n            this.trigger('sync');\n        }, (error) => {\n            this.countries = [];\n            return error;\n        });\n    }\n\n    setDefaultAddress(address, billing: boolean, shipping: boolean) {\n        if (!address)\n            return;\n\n        Services.get<Http>('$http').request({\n            url: '/profile/api/set-default-address/',\n            method: 'POST',\n            data: {\n                address: address.id,\n                billing: billing,\n                shipping: shipping\n            }\n        }).then((response) => {\n            this.fetchAddresses(true);\n        });\n    }\n\n    public statesFor(address) {\n        if (address) {\n            if (!this.statesMap[address.country] && !this.loadedStatesMap[address.country]) {\n                this.fetchStates(address.country);\n            }\n\n            return this.statesMap[address.country];\n        }\n\n        return [];\n    }\n\n    public fetchStates(country: string): void {\n        if (this.statesMap[country]) {\n            return this.statesMap[country]\n        }\n\n        this.statesMap[country] = [];\n        this.loadedStatesMap[country] = true;\n\n        Services.get<Http>('$http').request({\n            method: 'GET',\n            url: `/delivery/api/get-states/`,\n            params: {\n                country: country\n            }\n        }).then((response: any) => {\n            this.statesMap[country] = response.data.states;\n            this.trigger('sync');\n            this.trigger('loaded:states');\n        });\n    }\n}\n","import InjectedService from '../../../core/services/InjectedService';\nimport {ProcessedFileFolder} from \"../../processing/models/ProcessedFileFolder\";\nimport APIResponse from '../../../core/models/APIResponse';\n\nexport default class UserProductService extends InjectedService {\n    public static $inject : string[] = [\n        'ProcessedFileFolder',\n        'UserProfileService'\n    ];\n\n    protected folders : APIResponse<ProcessedFileFolder>;\n\n    constructor(protected ProcessedFileFolder, protected UserProfileService) {\n        super();\n    }\n\n    public reset() : void {\n        this.folders = null;\n    }\n}\n","import {Model} from \"../../../core/models/Model\";\nimport {field} from \"../../../core/models/fields/Field\";\nimport {APIResource} from '../../../core/models/APIResource';\n\nexport enum CreditTransactionType {\n    CREDIT = 0,\n    DEBIT = 1\n}\n\nexport enum CreditActionType {\n    STAFF = 0,\n    REFUND = 1,\n    PURCHASE = 2,\n    GIFT_CARD = 3,\n    TESTIMONIAL = 4,\n    NONPROFIT = 5,\n    TRADE_SHOW = 6,\n    DONATION = 7,\n    MARKETING = 8\n}\n\nexport class UserInStoreCreditTransaction extends Model {\n    static override uri:string = '/profile/api/user/user-in-store-credit-transaction/:id/';\n    static override objects: APIResource<UserInStoreCreditTransaction>;\n\n    @field()\n    action: CreditActionType;\n\n    @field()\n    balance_change: number;\n\n    @field()\n    balance_end: number;\n\n    @field()\n    balance_start: number;\n\n    @field()\n    comment: string;\n\n    @field()\n    date_created: string;\n\n    @field()\n    transaction_type: CreditTransactionType;\n\n    @field()\n    currency: string;\n\n}\n","import {Model} from '../../../core/models/Model';\nimport {field} from '../../../core/models/fields/Field';\nimport {APIResource} from '../../../core/models/APIResource';\n\nexport class WholesaleAccount extends Model {\n    static override uri: string = '/profile/api/user/wholesale-account/:id/';\n    static override objects: APIResource<WholesaleAccount>;\n\n    @field()\n    name: string;\n\n    @field()\n    enabled: boolean;\n\n    @field()\n    price_modifier: number;\n\n    @field()\n    icon: string;\n\n    get display_name() {\n        return `${this.name} (${100 - (this.price_modifier * 100)}%)`\n    }\n}","import {Model} from '../../../core/models/Model';\nimport {Field, field} from '../../../core/models/fields/Field';\nimport MessageList from '../../../core/utils/MessageList';\nimport {WholesaleMembership} from './WholesaleMemebership';\nimport {ToManyField} from '../../../core/models/fields/ToManyField';\nimport {Collection} from '../../../core/models/Collection';\nimport {CustomOption} from '../../svgcustom/models/CustomOption';\nimport {ForeignKeyURIField} from '../../../core/models/fields/ForeignKeyURIField';\nimport {ForeignKeyField} from '../../../core/models/fields/ForeignKeyField';\nimport {APIResource} from '../../../core/models/APIResource';\n\nexport enum BUSINESS_SIZE_CHOICES {\n    SINGLE_PERSON = 0,\n    SMALL_BUSINESS = 1,\n    MEDIUM_BUSINESS = 2,\n    LARGE_BUSINESS = 3\n}\n\nexport const BUSINESS_SIZE_ITEMS = [\n    {id: BUSINESS_SIZE_CHOICES.SINGLE_PERSON, name: '1'},\n    {id: BUSINESS_SIZE_CHOICES.SMALL_BUSINESS, name: '2 to 10'},\n    {id: BUSINESS_SIZE_CHOICES.MEDIUM_BUSINESS, name: '11 to 50'},\n    {id: BUSINESS_SIZE_CHOICES.LARGE_BUSINESS, name: '50+'},\n];\n\nexport enum BUSINESS_TYPE_CHOICES {\n    BUSINESS_ADVERTISING = 0,\n    BUSINESS_PROMOTIONAL = 1,\n    BUSINESS_APPAREL = 2,\n    BUSINESS_SIGNS = 3,\n    BUSINESS_BROKER = 4,\n    BUSINESS_PRINTER = 4,\n    BUSINESS_OTHER = 5,\n    BUSINESS_GOV_SCHOOL = 6,\n    BUSINESS_RETAIL = 7,\n}\n\nexport const BUSINESS_TYPE_CHOICES_ITEMS = [\n    {id: BUSINESS_TYPE_CHOICES.BUSINESS_ADVERTISING, name:'Advertising / Marketing'},\n    {id: BUSINESS_TYPE_CHOICES.BUSINESS_PROMOTIONAL, name:'Promotional Product Distributor'},\n    {id: BUSINESS_TYPE_CHOICES.BUSINESS_APPAREL, name:'Apparel Embroiderer / Screen Printer'},\n    {id: BUSINESS_TYPE_CHOICES.BUSINESS_SIGNS, name:'Sign Manufacture'},\n    {id: BUSINESS_TYPE_CHOICES.BUSINESS_BROKER, name:'Print Broker'},\n    {id: BUSINESS_TYPE_CHOICES.BUSINESS_PRINTER, name:'Commercial Printer'},\n    {id: BUSINESS_TYPE_CHOICES.BUSINESS_GOV_SCHOOL, name:'Government / School'},\n    {id: BUSINESS_TYPE_CHOICES.BUSINESS_RETAIL, name:'Retail'},\n    {id: BUSINESS_TYPE_CHOICES.BUSINESS_OTHER, name:'Other'}\n];\n\nexport enum REFERRAL_CHOICES {\n    REFERRAL_ADVERTISING = 0,\n    REFERRAL_TRADE_ASSOCIATION = 1,\n    REFERRAL_EMAIL = 2,\n    REFERRAL_DIRECT_MAIL = 3,\n    REFERRAL_TRADE_SHOW = 4,\n    REFERRAL_STANDARD = 5,\n    REFERRAL_OTHER = 6,\n    REFERRAL_GSA = 7\n}\n\nexport const REFERRAL_CHOICES_ITEMS = [\n    {id: REFERRAL_CHOICES.REFERRAL_ADVERTISING, name: 'Advertising'},\n    {id: REFERRAL_CHOICES.REFERRAL_TRADE_ASSOCIATION, name: 'Trade Association'},\n    {id: REFERRAL_CHOICES.REFERRAL_EMAIL, name: 'Email'},\n    {id: REFERRAL_CHOICES.REFERRAL_DIRECT_MAIL, name: 'Direct Mail'},\n    {id: REFERRAL_CHOICES.REFERRAL_TRADE_SHOW, name: 'Trade Show'},\n    {id: REFERRAL_CHOICES.REFERRAL_STANDARD, name: 'Referral'},\n    {id: REFERRAL_CHOICES.REFERRAL_GSA, name: 'GSA Advantage'},\n    {id: REFERRAL_CHOICES.REFERRAL_OTHER, name: 'Other'},\n];\n\nexport enum APPLICATION_STATUS_CHOICES {\n    STATUS_NEW = 0,\n    STATUS_DENIED = 1,\n    STATUS_ACCEPTED = 2,\n    STATUS_PENDING = 3\n}\n\nexport const APPLICATION_STATUS_ITEMS = [\n    {id: APPLICATION_STATUS_CHOICES.STATUS_NEW, name: 'New'},\n    {id: APPLICATION_STATUS_CHOICES.STATUS_DENIED, name: 'Denied'},\n    {id: APPLICATION_STATUS_CHOICES.STATUS_ACCEPTED, name: 'Accepted'},\n    {id: APPLICATION_STATUS_CHOICES.STATUS_PENDING, name: 'Pending'}\n];\n\nexport class WholesaleApplication extends Model {\n    static override uri: string = '/profile/api/user/wholesale-application/:id/';\n    static override objects: APIResource<WholesaleApplication>;\n\n    @field(Field, {\n        required: true\n    })\n    name: string;\n\n    @field(ForeignKeyField, {\n        model: 'User',\n        readOnly: true\n    })\n    customer: any;\n\n    @field(Field, {\n        required: true\n    })\n    company_name: string;\n\n    @field(Field, {\n        required: true\n    })\n    address: string;\n\n    @field(Field, {\n        required: true\n    })\n    city: string;\n\n    @field(Field, {\n        required: true\n    })\n    state: string;\n\n    @field(Field, {\n        required: true\n    })\n    postal_code: string;\n\n    @field(Field, {\n        required: true\n    })\n    country: string;\n\n    @field(Field, {\n        required: true\n    })\n    email: string;\n\n    @field(Field, {\n        required: true\n    })\n    phone_number: string;\n\n    @field(Field, {\n        required: true\n    })\n    employees: BUSINESS_SIZE_CHOICES;\n\n    @field(Field, {\n        required: true\n    })\n    business_description: BUSINESS_TYPE_CHOICES;\n\n    @field(Field, {\n        required: true\n    })\n    referral: REFERRAL_CHOICES;\n\n    @field()\n    application_status: APPLICATION_STATUS_CHOICES;\n\n    @field()\n    date_created: string;\n\n    @field(ToManyField, {\n        model: 'WholesaleMembership'\n    })\n    membership_applications: Collection<WholesaleMembership>;\n\n    get employees_option_name() {\n        for (const choice of BUSINESS_SIZE_ITEMS) {\n            if (choice.id == this.employees) {\n                return choice.name;\n            }\n        }\n    }\n\n    get business_description_option_name() {\n        for (const choice of BUSINESS_TYPE_CHOICES_ITEMS) {\n            if (choice.id == this.business_description) {\n                return choice.name;\n            }\n        }\n    }\n\n    get referral_option_name() {\n        for (const choice of REFERRAL_CHOICES_ITEMS) {\n            if (choice.id == this.referral) {\n                return choice.name;\n            }\n        }\n    }\n\n    get application_status_name() {\n        for (const choice of APPLICATION_STATUS_ITEMS) {\n            if (choice.id == this.application_status) {\n                return choice.name;\n            }\n        }\n    }\n\n    get employees_choices() {\n        return BUSINESS_SIZE_ITEMS;\n    }\n\n    get business_description_choices() {\n        return BUSINESS_TYPE_CHOICES_ITEMS;\n    }\n\n    get referral_choices() {\n        return REFERRAL_CHOICES_ITEMS;\n    }\n\n    get application_status_choices() {\n        return APPLICATION_STATUS_ITEMS;\n    }\n}","import {Model} from '../../../core/models/Model';\nimport {Field, field} from '../../../core/models/fields/Field';\nimport {ForeignKeyField} from '../../../core/models/fields/ForeignKeyField';\nimport {ClipartCategory} from '../../svgcustom/models/ClipartCategory';\nimport {WholesaleAccount} from './WholesaleAccount';\nimport {APIResource} from '../../../core/models/APIResource';\n\nexport class WholesaleMembership extends Model {\n    static override uri: string = '/profile/api/user/wholesale-membership/:id/';\n    static override objects: APIResource<WholesaleMembership>;\n\n    @field(ForeignKeyField, {\n        model: 'WholesaleAccount'\n    })\n    account: WholesaleAccount;\n\n    @field(Field, {\n        required: true\n    })\n    account_number: string;\n\n    @field()\n    expiration: string;\n\n    @field()\n    enabled: boolean;\n}","import {Model} from \"../../../core/models/Model\";\nimport {APIResource} from \"../../../core/models/APIResource\";\nimport {field} from \"../../../core/models/fields/Field\";\n\nexport class ShippingAccount extends Model {\n    static override uri: string = '/profile/api/user/shipping-account/:id/';\n    static override objects: APIResource<ShippingAccount>;\n\n    @field()\n    account_number: string;\n\n    @field()\n    postal_code: string;\n\n    @field()\n    billing_country: string;\n\n}","import {Model} from '../../../core/models/Model';\nimport {Field, field} from '../../../core/models/fields/Field';\n\nexport abstract class ChatItemAbstract extends Model {\n    abstract type;\n    private _date: Date;\n\n    @field()\n    date_created: string;\n\n    @field(Field, {\n        readOnly: true\n    })\n    customer_name: string;\n\n    @field(Field, {\n        readOnly: true\n    })\n    user_identifier: string;\n\n    @field()\n    is_staff: boolean;\n\n    get date() {\n        if (this._date) {\n            return this._date;\n        }\n        this._date = new Date(this.date_created);\n        return this._date;\n    }\n}","import {field} from '../../../core/models/fields/Field';\nimport {ChatItemAbstract} from './ChatItemAbstract';\nimport {APIResource} from '../../../core/models/APIResource';\n\nexport class ChatLine extends ChatItemAbstract {\n    static override uri: string = '/chat/api/v1/chat-line/:id/';\n    static override objects: APIResource<ChatLine>;\n    public type = 'chat-line';\n\n    @field()\n    message: string;\n\n    @field()\n    edited: boolean;\n\n    @field()\n    removed: boolean;\n\n    @field()\n    order_input: string;\n}","import {field} from '../../../core/models/fields/Field';\nimport {ChatItemAbstract} from './ChatItemAbstract';\nimport {APIResource} from '../../../core/models/APIResource';\n\nexport class ChatEvent extends ChatItemAbstract {\n    static override uri: string = '/chat/api/v1/chat-event/:id/';\n    static override objects: APIResource<ChatEvent>;\n    public type = 'chat-event';\n\n    @field()\n    event_type: any;\n\n    @field()\n    event_data: string;\n\n    @field()\n    event_name: string;\n\n    @field()\n    link_display: string;\n\n    @field()\n    event_slug: string;\n\n    @field()\n    display_message: string;\n}","import {Model} from '../../../core/models/Model';\nimport {field} from '../../../core/models/fields/Field';\nimport {APIResource} from '../../../core/models/APIResource';\n\nexport class ChatRoom extends Model {\n    static override uri: string = '/chat/api/v1/chat-room/:id/';\n    static override objects: APIResource<ChatRoom>;\n\n    @field()\n    name: string;\n\n    @field()\n    room_id: string;\n\n    @field()\n    description: string;\n\n    @field()\n    date_created: string;\n\n    @field()\n    date_closed: string;\n\n    @field()\n    owner: any;\n\n    @field()\n    closed: boolean;\n\n    @field()\n    opened: boolean;\n\n    @field()\n    online: boolean;\n\n    @field()\n    resolved: boolean;\n\n    @field()\n    customer_name: string;\n\n    @field()\n    email: string;\n\n    @field()\n    customer_service_image: string;\n\n    @field()\n    customer_service_name: string;\n\n    public new_messages: number = 0;\n}","import {Field, field} from '../../../core/models/fields/Field';\nimport {ChatItemAbstract} from './ChatItemAbstract';\nimport {APIResource} from '../../../core/models/APIResource';\n\nexport class ChatFile extends ChatItemAbstract {\n    static override uri: string = '/chat/api/v1/chat-file/:id/';\n    static override objects: APIResource<ChatFile>;\n    public type = 'chat-file';\n\n    @field(Field, {\n        readOnly: true\n    })\n    file: string;\n\n    @field(Field, {\n        readOnly: true\n    })\n    preview: string;\n\n    @field()\n    name: string\n\n    get download_url() {\n        if (!this.id) {\n            return null;\n        }\n\n        return `/chat/api/download-file/${this.id}/`\n    }\n}","import {ChatState} from '../../services/BaseChatService';\n\nexport const html:string = `\n<div class=\"chat-component card shadow-xl\" v-on:dragover=\"chat.in_upload_state = true\">\n    <div class=\"chat-container flex-left column stretch no-wrap full-height spacing-none\">\n        <audio id=\"new-message\" style=\"display: none\">\n            <source src=\"/static/audio/new-message.mp3\" type=\"audio/mpeg\">\n            <source src=\"/static/audio/new-message.ogg\" type=\"audio/ogg\">\n        </audio>\n        \n        <chat-header :chat=\"chat\"></chat-header>\n        \n        <div class=\"padded-card flex-full-center column\" v-if=\"chat.state == ${ChatState.LOADING} || chat.state == ${ChatState.WAITING_FOR_REP}\">\n            <svg width=\"48\" height=\"48\" viewBox=\"0 0 48 48\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\" class=\"spin\" style=\"animation-timing-function: steps(16, end);\">\n                <path d=\"M3 27C4.65685 27 6 25.6569 6 24C6 22.3431 4.65685 21 3 21C1.34315 21 0 22.3431 0 24C0 25.6569 1.34315 27 3 27Z\" fill=\"var(--brand-alt, #9E77ED)\"/>\n                <path opacity=\"0.94\" d=\"M4.59998 35C6.25683 35 7.59998 33.6569 7.59998 32C7.59998 30.3431 6.25683 29 4.59998 29C2.94312 29 1.59998 30.3431 1.59998 32C1.59998 33.6569 2.94312 35 4.59998 35Z\" fill=\"var(--brand-alt, #9E77ED)\"/>\n                <path opacity=\"0.88\" d=\"M9.20001 41.8C10.8569 41.8 12.2 40.4568 12.2 38.8C12.2 37.1431 10.8569 35.8 9.20001 35.8C7.54316 35.8 6.20001 37.1431 6.20001 38.8C6.20001 40.4568 7.54316 41.8 9.20001 41.8Z\" fill=\"var(--brand-alt, #9E77ED)\"/>\n                <path opacity=\"0.81\" d=\"M16 46.4C17.6569 46.4 19 45.0568 19 43.4C19 41.7431 17.6569 40.4 16 40.4C14.3431 40.4 13 41.7431 13 43.4C13 45.0568 14.3431 46.4 16 46.4Z\" fill=\"var(--brand-alt, #9E77ED)\"/>\n                <path opacity=\"0.74\" d=\"M24 48C25.6569 48 27 46.6569 27 45C27 43.3431 25.6569 42 24 42C22.3431 42 21 43.3431 21 45C21 46.6569 22.3431 48 24 48Z\" fill=\"var(--brand-alt, #9E77ED)\"/>\n                <path opacity=\"0.68\" d=\"M32 46.4C33.6569 46.4 35 45.0568 35 43.4C35 41.7431 33.6569 40.4 32 40.4C30.3431 40.4 29 41.7431 29 43.4C29 45.0568 30.3431 46.4 32 46.4Z\" fill=\"var(--brand-alt, #9E77ED)\"/>\n                <path opacity=\"0.62\" d=\"M38.8 41.8C40.4568 41.8 41.8 40.4568 41.8 38.8C41.8 37.1431 40.4568 35.8 38.8 35.8C37.1431 35.8 35.8 37.1431 35.8 38.8C35.8 40.4568 37.1431 41.8 38.8 41.8Z\" fill=\"var(--brand-alt, #9E77ED)\"/>\n                <path opacity=\"0.55\" d=\"M43.4 35C45.0569 35 46.4 33.6569 46.4 32C46.4 30.3431 45.0569 29 43.4 29C41.7432 29 40.4 30.3431 40.4 32C40.4 33.6569 41.7432 35 43.4 35Z\" fill=\"var(--brand-alt, #9E77ED)\"/>\n                <path opacity=\"0.48\" d=\"M45 27C46.6569 27 48 25.6569 48 24C48 22.3431 46.6569 21 45 21C43.3431 21 42 22.3431 42 24C42 25.6569 43.3431 27 45 27Z\" fill=\"var(--brand-alt, #9E77ED)\"/>\n                <path opacity=\"0.42\" d=\"M43.4 19C45.0569 19 46.4 17.6569 46.4 16C46.4 14.3431 45.0569 13 43.4 13C41.7432 13 40.4 14.3431 40.4 16C40.4 17.6569 41.7432 19 43.4 19Z\" fill=\"var(--brand-alt, #9E77ED)\"/>\n                <path opacity=\"0.29\" d=\"M38.8 12.2C40.4568 12.2 41.8 10.8569 41.8 9.20001C41.8 7.54316 40.4568 6.20001 38.8 6.20001C37.1431 6.20001 35.8 7.54316 35.8 9.20001C35.8 10.8569 37.1431 12.2 38.8 12.2Z\" fill=\"var(--brand-alt, #9E77ED)\"/>\n                <path opacity=\"0.22\" d=\"M32 7.60001C33.6569 7.60001 35 6.25686 35 4.60001C35 2.94315 33.6569 1.60001 32 1.60001C30.3431 1.60001 29 2.94315 29 4.60001C29 6.25686 30.3431 7.60001 32 7.60001Z\" fill=\"var(--brand-alt, #9E77ED)\"/>\n                <path opacity=\"0.16\" d=\"M24 6C25.6569 6 27 4.65685 27 3C27 1.34315 25.6569 0 24 0C22.3431 0 21 1.34315 21 3C21 4.65685 22.3431 6 24 6Z\" fill=\"var(--brand-alt, #9E77ED)\"/>\n                <path opacity=\"0.1\" d=\"M16 7.60001C17.6569 7.60001 19 6.25686 19 4.60001C19 2.94315 17.6569 1.60001 16 1.60001C14.3431 1.60001 13 2.94315 13 4.60001C13 6.25686 14.3431 7.60001 16 7.60001Z\" fill=\"var(--brand-alt, #9E77ED)\"/>\n                <path opacity=\"0.04\" d=\"M9.20001 12.2C10.8569 12.2 12.2 10.8569 12.2 9.20001C12.2 7.54316 10.8569 6.20001 9.20001 6.20001C7.54316 6.20001 6.20001 7.54316 6.20001 9.20001C6.20001 10.8569 7.54316 12.2 9.20001 12.2Z\" fill=\"var(--brand-alt, #9E77ED)\"/>\n            </svg>\n\n            <p class=\"align-center\" v-if=\"chat.state == ${ChatState.LOADING}\">\n                Connecting\n            </p>\n            <p class=\"align-center\" v-if=\"chat.state == ${ChatState.WAITING_FOR_REP}\">\n                Just a moment - We’re connecting you to one of our service reps...\n            </p>\n        </div>\n        \n        <div class=\"padded-card flex-center column stretch full-height space-between no-wrap\" v-if=\"chat.state == ${ChatState.WAITING_TIMEOUT}\">\n            <div class=\"flex-center stretch align-center\">\n                <p>\n                    We are currently working with other \n                    customers or away from our desk.\n                </p>\n                <p>\n                    What would you like to do?\n                </p>\n            </div>\n            <div class=\"flex-center stretch no-wrap\">\n                <button class=\"btn-base btn-secondary-action full-width\" @click=\"chat.ok_waiting = true\">\n                    <i class=\"fa fa-clock\"></i> Continue Waiting\n                </button>\n                <button class=\"btn-base btn-primary-action full-width\" @click=\"chat.leave_chat()\">\n                    <i class=\"fa fa-envelope\"></i> Leave Message\n                </button>\n            </div>\n        </div>\n        \n        <div class=\"padded-card flex-center column stretch space-between no-wrap full-height\" v-if=\"chat.state == ${ChatState.OFFLINE_MESSAGE_SENT}\">\n            <div class=\"flex-center align-center column\">\n                <h3 class=\"strong\">Message Sent</h3>\n                <p class=\"align-center\">\n                    We will get back to you as soon as we can. \n                    <br>\n                    Thank you for your patience.\n                </p>\n            </div>\n            <button class=\"btn-base btn-primary-action\" @click=\"chat.close_chat()\">\n                Close Chat\n            </button>\n        </div>\n        \n        <div class=\"padded-card flex-center stretch align-center no-wrap\" v-if=\"chat.state == ${ChatState.RECONNECTING}\">\n            <i class=\"fa fa-spinner fa-spin\"></i>\n            <h4 class=\"strong\">Reconnecting...</h4>\n        </div>\n        \n        <div class=\"padded-card flex-center column nowrap stretch space-between full-height no-wrap\" v-if=\"chat.state == ${ChatState.DISCONNECTED}\">\n            <div class=\"flex-center stretch align-center\">\n                <div class=\"flex-left-center spacing-sm\">\n                    <svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n                        <path d=\"M9.99975 7.49999V10.8333M9.99975 14.1667H10.0081M8.84585 3.24309L1.99178 15.0819C1.61161 15.7386 1.42153 16.0669 1.44962 16.3364C1.47412 16.5714 1.59727 16.785 1.7884 16.924C2.00753 17.0833 2.38691 17.0833 3.14568 17.0833H16.8538C17.6126 17.0833 17.992 17.0833 18.2111 16.924C18.4022 16.785 18.5254 16.5714 18.5499 16.3364C18.578 16.0669 18.3879 15.7386 18.0077 15.0819L11.1537 3.24309C10.7748 2.58878 10.5854 2.26163 10.3383 2.15176C10.1228 2.05591 9.87672 2.05591 9.66117 2.15176C9.41406 2.26163 9.22466 2.58879 8.84585 3.24309Z\" stroke=\"var(--warning-weak, #F79009)\" stroke-width=\"1.66667\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n                    </svg>\n                    <h4 class=\"text-warning\">Uh-oh! Disconnected</h4>\n                </div>\n                <p>Looks like we lost connection for a moment. No worries—just click below to reconnect!</p>\n            </div>\n            <button class=\"btn-base btn-primary-action full-width\" @click=\"chat.reconnect()\">Reconnect</button>\n        </div>\n        \n        <div class=\"padded-card flex-center align-center column space-between stretch full-height no-wrap\" v-if=\"chat.state == ${ChatState.CHAT_CLOSED}\">\n            <div class=\"flex-center align-center column\">\n                <h4 class=\"strong\">Thanks for chatting with us!</h4>\n                <p>If you need anything else, we’re here to help.</p>\n            </div>\n            <button class=\"btn-base btn-primary-action\" @click=\"chat.close_chat()\">\n                Close Chat\n            </button>\n        </div>\n        \n        <div class=\"padded-card column space-between stretch flex-center full-height no-wrap\" v-if=\"chat.state == ${ChatState.OUT_OF_OFFICE}\">\n            <div class=\"flex-center stretch align-center\">\n                <p>\n                    We are currently out of the office.\n                </p>\n                <p>\n                    Our business hours are:\n                    <br>\n                    Monday - Friday\n                    <br>\n                    7:30am - 4:00pm PST\n                </p>\n                <p>\n                    Please leave us a message and we will\n                    <br>\n                    get back to you the following business day.\n                </p>\n            </div>\n            <div class=\"flex-center\">\n                <button class=\"btn-base btn-primary-action full-width no-wrap\" @click=\"chat.leaving_message = true\">\n                    Leave Message\n                </button>\n            </div>\n        </div>\n        \n        <div class=\"padded-card flex-center column stretch space-between no-wrap full-height\" v-if=\"chat.state == ${ChatState.COLLECTING_INFO}\">\n            <div class=\"flex-left\">\n                <div class=\"input-group\">\n                    <label>Your name</label>\n                    <message-list :errors=\"chat.error_list\" :field=\"'customer-name'\">\n                        <input v-model=\"username\" type=\"text\">\n                    </message-list>\n                </div>\n                <div class=\"input-group\">\n                    <label>Your email</label>\n                    <message-list :errors=\"chat.error_list\" :field=\"'email'\">\n                        <input v-model=\"email\" type=\"email\">\n                    </message-list>\n                </div>\n                <div class=\"input-group\">\n                    <label>What can we help you with?</label>\n                    <message-list :errors=\"chat.error_list\" :field=\"'description'\">\n                        <textarea v-model=\"description\"></textarea>\n                    </message-list>\n                </div>\n            </div>\n            \n            <button class=\"btn-base btn-primary-action\" @click=\"chat.updateChatRoom(username, email, description)\">Chat now</button>\n        </div>\n        \n        <div class=\"chat-message-container-content flex-center stretch column full-height space-between no-wrap spacing-none\" v-if=\"chat.state == ${ChatState.IN_CHAT} || chat.state == ${ChatState.CLOSING}\" id=\"chat-component\">\n            <div class=\"flex-full-center full-width padded-card\" v-if=\"chat.in_upload_state\">\n                <div class=\"flex-left space-between full-width\">\n                    <h4>Upload a file</h4>\n                    <button class=\"btn-icon touch-spacing\" @click=\"chat.in_upload_state = null\">\n                        <svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n                            <path d=\"M15 5L5 15M5 5L15 15\" stroke=\"var(--icon-strong, #98A2B3)\" stroke-width=\"1.66667\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n                        </svg>\n                    </button>\n                </div>\n                \n                <file-upload url=\"/chat/api/upload-file/\" :form-data=\"file_to_form_data\" :success=\"upload_success\" :failure=\"upload_failure\"></file-upload>\n            </div>\n            \n            <div id=\"chat-scroll-area\" class=\"flex-left full-width padded-card chat-area grow\" v-show=\"!chat.in_upload_state\">\n                <div v-for=\"(item, $index) in chat.history\" class=\"chat-message\" :class=\"{ 'owned-by-user': isSelf(item), 'owned-by-staff': !isSelf(item), 'group-message': canGroup(item, $index), 'full-width': item.type == 'chat-event' }\">                     \n                    <a class=\"hover-actions\" v-if=\"item.type == 'chat-file' && item.download_ur\" :href=\"item.download_url\" target=\"_blank\">\n                        <i class=\"fa fa-download\" aria-hidden=\"true\"></i> \n                    </a>\n                    \n                    <div v-if=\"item.type == 'chat-line'\" class=\"flex-left column full-width stretch spacing-xs\">\n                        <div class=\"flex-left-end space-between\">\n                            <span class=\"text-sm\">{{ item.customer_name }}</span>\n                            <span class=\"text-xs\">{{ $filters.date(item.date_created, 'HH:mm') }}</span>\n                        </div>\n                        <div class=\"chat-bubble\">\n                            <span class=\"chat-text\">{{ item.message }}</span>\n                        </div>\n                    </div>\n                    <div class=\"chat-event\" v-if=\"item.type == 'chat-event'\">\n                        <div class=\"chat-note\" v-if=\"item.event_slug == 'chat-note'\">\n                            <b class=\"text-sm\">Staff Note:</b>\n                            <p class=\"text-sm\">{{ item.event_data }}</p>\n                        </div>\n                        <div v-if=\"item.event_slug != 'chat-note'\" class=\"text-xs\">\n                            <span class=\"text-disabled\" v-if=\"item.display_message\">\n                                {{ item.display_message }}\n                            </span>\n                            <span class=\"text-disabled\" v-if=\"!item.display_message\">\n                                {{ item.event_data }} {{ item.link_display }} {{ item.event_name }}\n                            </span>\n                        </div>  \n                    </div>\n                    <div class=\"chat-file\" v-if=\"item.type == 'chat-file'\">\n                        <div class=\"flex-left-end space-between\">\n                            <span class=\"text-sm\">{{ item.customer_name }}</span>\n                            <span class=\"text-xs\">{{ $filters.date(item.date_created, 'HH:mm') }}</span>\n                        </div>\n                        <div class=\"chat-bubble\">\n                            <span class=\"text-xs\">{{ item.name }}</span>\n                            <img :src=\"item.preview\" :alt=\"item.name\">\n                        </div>\n                    </div>\n                </div>\n                <div class=\"typing-event\" v-for=\"person in chat.users_typing\">\n                    {{ person.username }} is typing...\n                </div>\n            </div>\n            <chat-input-area v-show=\"!chat.in_upload_state\" :chat=\"chat\"></chat-input-area>\n            <div class=\"flex-center column no-wrap stretch padded-card-md\" v-show=\"chat.state == ${ChatState.CLOSING}\">\n                <div class=\"align-center\">\n                    Are you sure you would like to end this chat?\n                </div>\n                <div class=\"flex-center stretch no-wrap\">\n                    <button class=\"btn-base btn-secondary-action full-width\" @click=\"chat.attempting_to_close = false\">\n                        Cancel\n                    </button>\n                    <button class=\"btn-base btn-primary-action full-width\" @click=\"chat.leave_chat(); chat.close_chat()\">\n                        End Chat\n                    </button>\n                </div>\n            </div>\n        </div>\n        <slot></slot>\n    </div>\n</div>\n`;","import {html} from './Chat.html';\nimport ChatService from '../../services/ChatService';\nimport IVueComponent from '../../../../core/adapters/IVueComponent';\nimport VueComponent, {computed, data, method, prop} from '../../../../core/adapters/VueComponent';\nimport Company from '../../../../core/services/Company';\nimport {eventToFiles, getInnerHeight} from '../../../../core/utils/utils';\nimport {Services} from '../../../../core/services/Services';\nimport UserProfileService from '../../../userprofile/services/UserProfileService';\n\nexport class ChatController extends VueComponent {\n\n    @data()\n    chat_input: string;\n\n    @prop()\n    chat: ChatService;\n\n    @data()\n    company: Company;\n\n    @data()\n    email: string = '';\n\n    @data()\n    username: string = '';\n\n    @data()\n    description: string = '';\n\n    @data()\n    file_to_form_data;\n\n    @data()\n    upload_success;\n\n    constructor(component) {\n        super(component);\n\n        this.company = Services.get<Company>('Company');\n        window['chat'] = this.chat;\n\n        this.file_to_form_data = (file: File) => {\n            let data = new FormData();\n            data.append('file', file);\n            data.append('chat_room', String(this.chat.chat_room.id));\n            return data;\n        }\n        this.upload_success = (response) => {\n            this.chat.in_upload_state = false;\n        }\n    }\n\n    override mounted() {\n        super.mounted();\n\n        this.chat.bind('data-changed', () => {\n            this.$forceUpdate();\n\n            let scroll_area = this.$el.querySelector('#chat-scroll-area');\n\n            if (!scroll_area) {\n                return;\n            }\n\n            // 15px buffer\n            let at_bottom = (scroll_area.scrollHeight - scroll_area.scrollTop) - 15 <= getInnerHeight(scroll_area);\n\n            if (at_bottom) {\n                this.$nextTick(() => {\n                    if (this.$destroyed) {\n                        return;\n                    }\n\n                    let scroll_area = this.$el.querySelector('#chat-scroll-area');\n                    // A state change can remove the message area during the render.\n                    if (scroll_area) {\n                        scroll_area.scrollTop = scroll_area.scrollHeight + scroll_area.scrollTop;\n                    }\n                });\n            }\n        }, this);\n\n        let scroll_area = this.$el.querySelector('#chat-scroll-area');\n        if (scroll_area) {\n            scroll_area.scrollTop = scroll_area.scrollHeight + scroll_area.scrollTop;\n        }\n    }\n\n    override beforeUnmount() {\n        this.chat.unbindWithContext('data-changed', this);\n        super.beforeUnmount();\n    }\n\n    @method()\n    canGroup(message, index) {\n        if (!index) {\n            return false;\n        }\n\n        const last = this.chat.history[index - 1];\n\n        let minutes_between = (Math.abs(Number(last.date) - Number(message.date)) / 1000 / 60);\n\n        return last.user_identifier == message.user_identifier && minutes_between < 10;\n    }\n\n    @method()\n    isSelf(message) {\n        if (Services.get<UserProfileService>('UserProfileService').user) {\n            return message.user_identifier == `${Services.get<UserProfileService>('UserProfileService').user.id}`;\n        }\n        else {\n            return message.user_identifier && `${message.user_identifier}`.indexOf('S-') != -1;\n        }\n    }\n\n    @method()\n    drop(event) {\n        let files = eventToFiles(event);\n        this.chat.setupFile(files[0]);\n    }\n}\n\nexport default function ChatComponent(): IVueComponent {\n    return {\n        controller: ChatController,\n        template: html,\n        tag: 'chat-component'\n    };\n}\n","import {html} from './ChatBubble.html';\nimport ChatService from '../../services/ChatService';\nimport VueComponent, {data, method} from '../../../../core/adapters/VueComponent';\nimport IVueComponent from '../../../../core/adapters/IVueComponent';\n\nexport class ChatBubbleController extends VueComponent {\n    static override $inject = [\n        '$cookies',\n        'ChatService',\n    ];\n\n    @data()\n    chat_open: boolean;\n\n    @data()\n    chat: ChatService\n\n    constructor(protected element, protected $cookies, chat_service: ChatService) {\n        super(element);\n\n        this.chat = chat_service;\n\n        let has_active_chat = this.$cookies.get('chat_active') == 'true';\n        if (has_active_chat) {\n            this.chat.connect();\n            this.chat_open = true;\n        }\n        else{\n            this.chat_open = false;\n        }\n\n        this.chat.bind('close-chat', () => {\n            this.chat_open = false;\n        }, this)\n        this.chat.bind('open-chat', () => {\n            this.chat.connect();\n            this.chat_open = true;\n        }, this);\n\n        for (const item of document.querySelectorAll('[toggle-chat]')) {\n            item.addEventListener('click', () => {\n                this.toggleChat();\n            })\n        }\n\n        window['toggleChat'] = this.toggleChat.bind(this);\n    }\n\n    @method()\n    public toggleChat() {\n        if (!this.chat.connected) {\n            this.chat_open = true;\n            return this.chat.connect();\n        }\n\n        if (!this.chat.chat_room || this.chat.chat_room.resolved) {\n            this.chat.close_chat();\n        }\n\n        if (this.chat_open && this.chat.chat_room.opened) {\n            this.chat.attempting_to_close = true;\n        }\n        else {\n            this.chat_open = !this.chat_open;\n\n            if (!this.chat_open && !this.chat.chat_room.opened) {\n                this.chat.close_chat();\n            }\n        }\n    }\n}\n\nexport default function ChatBubble(): IVueComponent {\n\n    return {\n        controller: ChatBubbleController,\n        template: html,\n        tag: 'chat-bubble'\n    };\n}\n","export const html:string = `\n<div class=\"chat-bubble\">\n    <chat-component v-if=\"chat_open\" v-show=\"!chat.minimized\" :chat=\"chat\"></chat-component>\n    \n    <div class=\"chat-bubble-icon\" @click=\"toggleChat()\" v-show=\"!chat.minimized\">\n        <svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\" v-if=\"!chat_open\" aria-label=\"Live Chat\">\n            <path d=\"M10 15L6.92474 18.1137C6.49579 18.548 6.28131 18.7652 6.09695 18.7805C5.93701 18.7938 5.78042 18.7295 5.67596 18.6076C5.55556 18.4672 5.55556 18.162 5.55556 17.5515V15.9916C5.55556 15.444 5.10707 15.0477 4.5652 14.9683V14.9683C3.25374 14.7762 2.22378 13.7463 2.03168 12.4348C2 12.2186 2 11.9605 2 11.4444V6.8C2 5.11984 2 4.27976 2.32698 3.63803C2.6146 3.07354 3.07354 2.6146 3.63803 2.32698C4.27976 2 5.11984 2 6.8 2H14.2C15.8802 2 16.7202 2 17.362 2.32698C17.9265 2.6146 18.3854 3.07354 18.673 3.63803C19 4.27976 19 5.11984 19 6.8V11M19 22L16.8236 20.4869C16.5177 20.2742 16.3647 20.1678 16.1982 20.0924C16.0504 20.0255 15.8951 19.9768 15.7356 19.9474C15.5558 19.9143 15.3695 19.9143 14.9969 19.9143H13.2C12.0799 19.9143 11.5198 19.9143 11.092 19.6963C10.7157 19.5046 10.4097 19.1986 10.218 18.8223C10 18.3944 10 17.8344 10 16.7143V14.2C10 13.0799 10 12.5198 10.218 12.092C10.4097 11.7157 10.7157 11.4097 11.092 11.218C11.5198 11 12.0799 11 13.2 11H18.8C19.9201 11 20.4802 11 20.908 11.218C21.2843 11.4097 21.5903 11.7157 21.782 12.092C22 12.5198 22 13.0799 22 14.2V16.9143C22 17.8462 22 18.3121 21.8478 18.6797C21.6448 19.1697 21.2554 19.5591 20.7654 19.762C20.3978 19.9143 19.9319 19.9143 19 19.9143V22Z\" stroke=\"white\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n        </svg>\n        <svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\" v-if=\"chat_open\" aria-label=\"Close Chat\">\n            <path d=\"M17 7L7 17M7 7L17 17\" stroke=\"var(--input-strong, white)\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n        </svg>\n    </div>\n    \n    <div class=\"chat-bubble-icon\" @click=\"chat.minimized = false\" v-show=\"chat.minimized\">\n        <svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\" aria-label=\"Live Chat\">\n            <path d=\"M10 15L6.92474 18.1137C6.49579 18.548 6.28131 18.7652 6.09695 18.7805C5.93701 18.7938 5.78042 18.7295 5.67596 18.6076C5.55556 18.4672 5.55556 18.162 5.55556 17.5515V15.9916C5.55556 15.444 5.10707 15.0477 4.5652 14.9683V14.9683C3.25374 14.7762 2.22378 13.7463 2.03168 12.4348C2 12.2186 2 11.9605 2 11.4444V6.8C2 5.11984 2 4.27976 2.32698 3.63803C2.6146 3.07354 3.07354 2.6146 3.63803 2.32698C4.27976 2 5.11984 2 6.8 2H14.2C15.8802 2 16.7202 2 17.362 2.32698C17.9265 2.6146 18.3854 3.07354 18.673 3.63803C19 4.27976 19 5.11984 19 6.8V11M19 22L16.8236 20.4869C16.5177 20.2742 16.3647 20.1678 16.1982 20.0924C16.0504 20.0255 15.8951 19.9768 15.7356 19.9474C15.5558 19.9143 15.3695 19.9143 14.9969 19.9143H13.2C12.0799 19.9143 11.5198 19.9143 11.092 19.6963C10.7157 19.5046 10.4097 19.1986 10.218 18.8223C10 18.3944 10 17.8344 10 16.7143V14.2C10 13.0799 10 12.5198 10.218 12.092C10.4097 11.7157 10.7157 11.4097 11.092 11.218C11.5198 11 12.0799 11 13.2 11H18.8C19.9201 11 20.4802 11 20.908 11.218C21.2843 11.4097 21.5903 11.7157 21.782 12.092C22 12.5198 22 13.0799 22 14.2V16.9143C22 17.8462 22 18.3121 21.8478 18.6797C21.6448 19.1697 21.2554 19.5591 20.7654 19.762C20.3978 19.9143 19.9319 19.9143 19 19.9143V22Z\" stroke=\"white\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n        </svg>\n    </div>\n</div>\n`;","import {ChatState} from '../../services/BaseChatService';\n\nexport const html:string = `\n<div class=\"chat-header flex-left-center padded-card spacing-sm space-between\" v-show=\"chat.state != ${ChatState.IN_CHAT}\">\n    <div class=\"flex-left-center spacing-sm\">\n        <img height=\"50px\" width=\"50px\" class=\"chat-header-icon\" src=\"/static/img/chat/site-chat-logo.svg\">\n        <h4>Chat with us!</h4>\n    </div>\n    <button class=\"btn-icon touch-spacing\" @click=\"chat.minimized = !chat.minimized\">\n        <svg width=\"14\" height=\"8\" viewBox=\"0 0 14 8\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n            <path d=\"M1 1L7 7L13 1\" stroke=\"#98A2B3\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n        </svg>\n    </button>\n</div>\n<div class=\"chat-header flex-left-center padded-card spacing-sm space-between\" v-show=\"chat.state == ${ChatState.IN_CHAT}\">\n    <div class=\"flex-left-center no-wrap spacing-sm\">\n        <div class=\"image-portal\">\n            <img height=\"50px\" width=\"50px\" :class=\"{'default-image': !(chat.chat_room && chat.chat_room.customer_service_image) ? '4px': ''}\" v-bind:src=\"chat.chat_room && chat.chat_room.customer_service_image || '/static/img/chat/site-chat-logo.svg'\">\n        </div>\n        <h3>\n            {{ chat.chat_room && chat.chat_room.customer_service_name ? chat.chat_room.customer_service_name : 'Customer Service' }}\n        </h3>\n    </div>\n    <button class=\"btn-icon touch-spacing\" @click=\"chat.minimized = !chat.minimized\">\n        <svg width=\"14\" height=\"8\" viewBox=\"0 0 14 8\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n            <path d=\"M1 1L7 7L13 1\" stroke=\"#98A2B3\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n        </svg>\n    </button>\n</div>\n`;","import {html} from './ChatHeader.html';\nimport VueComponent, {data, prop} from '../../../../core/adapters/VueComponent';\nimport IVueComponent from '../../../../core/adapters/IVueComponent';\nimport {Services} from '../../../../core/services/Services';\nimport Company from '../../../../core/services/Company';\n\nexport class ChatHeaderController extends VueComponent {\n    public chat_input: string;\n    public element;\n\n    @prop()\n    chat: any;\n\n    @data()\n    company: any;\n\n    constructor(component, Company) {\n        super(component);\n\n        this.company = Services.get<Company>('Company')\n    }\n}\n\nexport default function ChatHeader(): IVueComponent {\n\n    return {\n        controller: ChatHeaderController,\n        template: html,\n        tag: 'chat-header'\n    };\n}\n","import {ChatState} from '../../services/BaseChatService';\n\nexport const html:string = `\n<div class=\"chat-input padded-card-md flex-left stretch no-wrap spacing-md\" v-show=\"!(chat.chat_disabled || chat.state == ${ChatState.CLOSING})\">\n    <div class=\"merge-borders flex-left no-wrap spacing-none full-width\">\n        <input class=\"full-width\" v-model=\"chat.chat_input\" placeholder=\"Type a message here...\" @keydown.enter.prevent=\"chat.send()\"></input>\n        <button class=\"btn-base btn-primary-action btn-square no-shrink\" @click=\"chat.send()\">\n            <svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n                <path d=\"M8.74964 11.25L17.4996 2.50004M8.85596 11.5234L11.0461 17.1551C11.239 17.6512 11.3355 17.8993 11.4745 17.9717C11.595 18.0345 11.7385 18.0346 11.8591 17.9719C11.9982 17.8997 12.0949 17.6517 12.2884 17.1558L17.7804 3.0827C17.9551 2.63505 18.0424 2.41123 17.9946 2.2682C17.9532 2.144 17.8557 2.04652 17.7315 2.00503C17.5885 1.95725 17.3646 2.0446 16.917 2.21929L2.84386 7.71124C2.34796 7.90476 2.10001 8.00152 2.02775 8.14061C1.96512 8.26118 1.9652 8.40472 2.02798 8.52522C2.1004 8.66422 2.34846 8.76069 2.84458 8.95363L8.47625 11.1437C8.57696 11.1829 8.62731 11.2025 8.66972 11.2327C8.7073 11.2595 8.74016 11.2924 8.76697 11.33C8.79721 11.3724 8.8168 11.4227 8.85596 11.5234Z\" stroke=\"var(--fill, white)\" stroke-width=\"1.66667\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n            </svg>\n        </button>\n    </div>\n    <button class=\"btn-base btn-secondary-action btn-square\" @click=\"chat.in_upload_state = !chat.in_upload_state\">\n        <img :src=\"$filters.static('img/icons/attachment.svg')\" alt=\"Upload Attachment\">\n    </button>\n</div>\n`;","import {html} from './ChatInputArea.html';\nimport IVueComponent from '../../../../core/adapters/IVueComponent';\nimport VueComponent, {data, prop} from '../../../../core/adapters/VueComponent';\nimport ChatService from '../../services/ChatService';\n\nexport class ChatInputAreaController extends VueComponent {\n    static override $inject = [\n        'ChatService',\n    ];\n\n    @prop()\n    chat: ChatService;\n\n    constructor(component, ChatService) {\n        super(component);\n\n        this.chat = ChatService;\n    }\n}\n\nexport default function ChatInputArea(): IVueComponent {\n\n    return {\n        controller: ChatInputAreaController,\n        template: html,\n        tag: 'chat-input-area'\n    };\n}\n","import VueItem from '../adapters/VueItem';\n\nexport default class CarouselController {\n    private component: VueItem;\n    private _maxRight;\n    private _maxLeft;\n    private _slider;\n\n    constructor(component) {\n        this.component = component;\n    }\n\n    // Must be called\n    mounted() {\n        if (this.slider) {\n            this.slider.addEventListener('scroll', this.onScroll.bind(this));\n\n            // Setup initial values and force vue to recalculate styles\n            this.onScroll();\n        }\n        else {\n            // Idk why this is happening\n            setTimeout(() => {\n                this.mounted();\n            }, 1000)\n        }\n    }\n\n    // Must be called\n    unmounted() {\n        this.slider?.removeEventListener('scroll', this.onScroll.bind(this))\n    }\n\n    onScroll() {\n        // Watch to see if we have hit the max left or right side and force a vue update so :styles can update\n        if (this._maxLeft != this.maxLeft()) {\n            this._maxLeft = this.maxLeft();\n            this.component.$forceUpdate();\n        }\n        if (this._maxRight != this.maxLeft()) {\n            this._maxRight = this.maxRight();\n            this.component.$forceUpdate();\n        }\n    }\n\n    get slider() {\n        if (this._slider) {\n            return this._slider;\n        }\n\n        this._slider = this.component.$el?.querySelector('ul.carousel-slider');\n        return this._slider;\n    }\n\n    get sliderOffset() {\n        if (window.innerWidth < 1000) {\n            return 10;\n        }\n        return 75;\n    }\n\n    scrollSliderLeft() {\n        if (!this.slider) {\n            return;\n        }\n\n        this.slider.scroll({\n            left: this.slider.scrollLeft - this.slider.offsetWidth - this.sliderOffset,\n            behavior: 'smooth'\n        })\n    }\n\n    scrollSliderRight() {\n        if (!this.slider) {\n            return;\n        }\n\n        this.slider.scroll({\n            left: this.slider.scrollLeft + this.slider.offsetWidth - this.sliderOffset,\n            behavior: 'smooth'\n        })\n    }\n\n    maxLeft() {\n        if (!this.slider) {\n            return false;\n        }\n\n        return this.slider.scrollLeft == 0;\n    }\n\n    maxRight() {\n        if (!this.slider) {\n            return false;\n        }\n\n        return (this.slider.scrollWidth - this.slider.clientWidth) == this.slider.scrollLeft;\n    }\n}","import VueApp from '../../adapters/VueApp';\nimport {computed, data, method} from '../../adapters/VueComponent';\nimport CarouselController from '../../utils/CarouselController';\n\nexport default class CarouselSliderApp extends VueApp {\n    @data()\n    carousel_controller: CarouselController;\n\n    constructor() {\n        super();\n\n        this.carousel_controller = new CarouselController(this);\n    }\n\n    override mounted() {\n        this.carousel_controller.mounted();\n    }\n\n    override unmounted() {\n        this.carousel_controller.unmounted();\n        super.unmounted();\n    }\n}","import VueApp from '../../../../core/adapters/VueApp';\nimport {data, method, prop} from '../../../../core/adapters/VueComponent';\n\nexport class RotatingBannerApp extends VueApp {\n    public total_items: number;\n    public swap_timeout: any;\n\n    @data()\n    index: number;\n\n    override mounted() {\n        super.mounted();\n\n        this.total_items = parseInt(this.$el.parentElement.getAttribute('total-items'));\n        this.index = 0;\n\n        this.swap_timeout = setTimeout(() => {\n            this.swapAutomation();\n        }, 12000);\n    }\n    \n    @method()\n    next() {\n        this.index = Math.abs((this.index + 1) % this.total_items);\n    }\n\n    @method()\n    last() {\n        this.index =  Math.abs((this.index - 1) % this.total_items);\n    }\n\n    @method()\n    stopAutomation() {\n        if (this.swap_timeout) {\n            clearTimeout(this.swap_timeout);\n        }\n    }\n\n    @method()\n    swapAutomation() {\n        this.next();\n\n        this.swap_timeout = setTimeout(() => {\n            this.swapAutomation();\n        }, 7000)\n    }\n}","import VueApp from '../../adapters/VueApp';\nimport {method} from '../../adapters/VueComponent';\n\nexport default class BackendAlertApp extends VueApp {\n\n    override mounted() {\n        super.mounted();\n    }\n\n    @method()\n    removeAlert() {\n        document.querySelector('#backend-alerts-app')?.remove();\n    }\n}","import {modal} from '../Modal';\n\nlet initialized = false;\nexport default function ModalAttrBinding() {\n    if (initialized) {\n        console.warn('Tried to initialize ModalAttrBinding more than once.')\n        return;\n    }\n    initialized = true;\n    for (const item of document.querySelectorAll('[data-modal-action]')) {\n        item.addEventListener('click', () => {\n            if (item.attributes['data-modal-action']?.value) {\n                if (item.attributes['data-modal-event']?.value) {\n                    modal[item.attributes['data-modal-action'].value](item.attributes['data-modal-event']);\n                }\n                else {\n                    modal[item.attributes['data-modal-action'].value]();\n                }\n            }\n        })\n    }\n    for (const item of document.querySelectorAll('[data-modal]')) {\n        item.addEventListener('click', () => {\n            modal.open(item.attributes['data-modal'].value);\n        });\n    }\n}\n\n","let initialized = false;\nexport default function ScrollToBinding() {\n    if (initialized) {\n        console.warn('Tried to initialize ScrollToBinding more than once.')\n        return;\n    }\n    initialized = true;\n\n    for (const item of document.querySelectorAll('[data-scroll-to]')) {\n        item.addEventListener('click', () => {\n            if (item.attributes['data-scroll-to']?.value) {\n                document.getElementById(item.attributes['data-scroll-to'].value)?.scrollIntoView({behavior: 'smooth', block: 'start'})\n            }\n        })\n    }\n    for (const item of document.querySelectorAll('[data-inner-scroll-to]')) {\n        item.addEventListener('click', () => {\n            if (item.attributes['data-inner-scroll-to']?.value) {\n                let el = document.getElementById(item.attributes['data-inner-scroll-to'].value);\n\n                if (!el || !el.parentElement) {\n                    return;\n                }\n\n                // Gap seems to be ignored by offsetLeft so we need to subtract it\n                let left_offset = el.offsetLeft;\n                let gap = window.getComputedStyle(el.parentElement)['gap'];\n                if (gap) {\n                    left_offset -= parseInt(gap.toString());\n                }\n                if (el.parentElement) {\n                    left_offset -= el.parentElement.offsetLeft;\n                }\n\n                el?.parentElement?.scroll({left: left_offset, behavior: \"smooth\"})\n            }\n        })\n    }\n}\n","/*\n    This has similar functionality to the v-dropdown however it doesn't require Vue to avoid some issues.\n    When vue mounts to a dom element, it will load in all images with loading=\"lazy\" despite not being needed,\n    which happens in the footer.\n\n    This will not play well with Vue so do not use it within a Vue mounted area.\n */\n\nlet initialized = false;\nexport default function DropdownBinding() {\n    if (initialized) {\n        console.warn('Tried to initialize DropdownBinding more than once.')\n        return;\n    }\n    initialized = true;\n\n    for (const el of document.querySelectorAll('[data-dropdown]')) {\n        const root = el;\n        const button = el.children[0];\n        const list = el.children[1];\n        const config = el.attributes['data-dropdown'].value;\n\n        let outside = config == 'outside';\n\n        let dropdownOnButtonClickEvent = (event) => {\n            // This prevents the click outside event from firing after this event and removing the open class we just added\n            if (!outside) {\n                event.stopImmediatePropagation();\n            }\n            root.classList.toggle('open');\n            if (root.classList.contains('open')) {\n                (list.querySelector('.selected') as any)?.focus();\n            }\n        }\n\n        if (!outside) {\n            let clickOutsideEvent = (event) => {\n                event.preventDefault();\n                if (event instanceof MouseEvent || (window['TouchEvent'] && event instanceof TouchEvent)) {\n                    if (root.classList.contains('open')) {\n                        root.classList.remove('open');\n                        event.stopImmediatePropagation();\n                    }\n                }\n            };\n            button.addEventListener('click', clickOutsideEvent);\n        }\n        else {\n            let clickOutsideEvent = (event) => {\n                // Prevent space bar from activating the button\n                if (event instanceof MouseEvent || (window['TouchEvent'] && event instanceof TouchEvent)) {\n                    if (root.classList.contains('open')) {\n                        // Clicks outside of the dropdown\n                        if (!(root == event.target || root.contains(event.target as Node))) {\n                            root.classList.remove('open');\n                        }\n                        // Clicks within the dropdown\n                        else if (root != event.target && root.children[1].contains(event.target as Node)) {\n                            root.classList.remove('open');\n                        }\n                    }\n                }\n            };\n            document.body.addEventListener('click', clickOutsideEvent);\n        }\n\n        button.addEventListener('click', dropdownOnButtonClickEvent);\n    }\n}","/*\n    This duplicates the v-tooltip functionality but works outside of a vue application\n */\nimport tippy from 'tippy.js';\nimport {mobileScreenSize} from '../utils';\n\nlet initialized = false;\nexport default function TooltipBinding() {\n    if (initialized) {\n        console.warn('Tried to initialize TooltipBinding more than once.')\n        return;\n    }\n    initialized = true;\n\n    // Tooltips don't work well on mobile so lets just disable them\n    if (mobileScreenSize()) {\n        return;\n    }\n\n    for (const el of document.querySelectorAll('[data-tooltip]')) {\n        const content = el.attributes['data-tooltip-content'].value\n        let position = null;\n\n        if(el.attributes['data-tooltip-position']) {\n            position = el.attributes['data-tooltip-position'].value\n        }\n        else {\n            position = 'top'\n        }\n\n        tippy(el, {\n            content: content,\n            placement: position,\n            theme: 'custom',\n            animation: 'perspective',\n            delay: [500, 0]\n        })\n    }\n}\n","// Same a v-toggle-password but works without vue\n\nlet initialized = false;\nexport default function PasswordToggleBinding() {\n    if (initialized) {\n        console.warn('Tried to initialize PasswordToggleBinding more than once.')\n        return;\n    }\n    initialized = true;\n\n    for (const el of document.querySelectorAll('[data-toggle-password]')) {\n        let input = el.querySelector('input');\n        let toggle_button = el.querySelector('i.password-toggle');\n        let on_click = () => {\n            let is_password = input.getAttribute('type') == 'password';\n            input.setAttribute('type', is_password ? 'text' : 'password');\n            toggle_button.classList.toggle('toggled');\n        }\n        toggle_button.addEventListener('click', on_click);\n    }\n}\n","let initialized = false;\nexport default function ElementInViewBinding() {\n    if (initialized) {\n        console.warn('Tried to initialize ElementInViewBinding more than once.')\n        return;\n    }\n    initialized = true;\n    for (const el of document.querySelectorAll('[data-toggle-in-side-scroll-view]')) {\n        let target = document.getElementById(el.attributes['data-toggle-in-side-scroll-view']?.value);\n        if (target) {\n            let check = () => {\n                let parent_bounds = target.parentElement.getBoundingClientRect();\n                let bounds = target.getBoundingClientRect();\n                if (bounds.left >= parent_bounds.left - bounds.width/2 && bounds.right <= parent_bounds.right + bounds.width/2) {\n                    el.classList.add('in-view');\n                }\n                else {\n                    el.classList.remove('in-view');\n                }\n            }\n            target.parentElement.addEventListener('scroll', check, {passive: true});\n\n            // The check forces a reflow, wait until next frame to do it\n            setTimeout(() => {\n                check();\n            })\n        }\n    }\n\n    for (const el of document.querySelectorAll('[data-toggle-in-view]')) {\n        let options = {\n            root: null,\n            rootMargin: '0px',\n            threshold: 0\n        }\n\n        const observer = new IntersectionObserver((entry, observer) => {\n            if (!entry || entry[0].isIntersecting) {\n                el.classList.add('in-view');\n            }\n            else {\n                el.classList.remove('in-view');\n            }\n        }, options);\n        observer.observe(el);\n    }\n}","let initialized = false;\nexport default function ToggleChatBinding() {\n    if (initialized) {\n        console.warn('Tried to initialize ToggleChatBinding more than once.')\n        return;\n    }\n    initialized = true;\n\n    for (const el of document.querySelectorAll('[data-toggle-chat]')) {\n        el.addEventListener('click', () => {\n            if (window['toggleChat']) {\n                window['toggleChat']();\n            }\n        })\n    }\n}","let initialized = false;\nexport default function ClickRotate() {\n    if (initialized) {\n        console.warn('Tried to initialize ScrollToBinding more than once.')\n        return;\n    }\n    initialized = true;\n\n    for (const item of document.querySelectorAll('[data-click-rotate]')) {\n        if (!item.attributes['data-click-rotate']?.value) {\n            return;\n        }\n\n        let buttons = []\n        let clicking = false;\n        let stop = false;\n\n        for (const button_id of item.attributes['data-click-rotate']?.value.split(',')) {\n            let button = document.getElementById(button_id)\n            if (!button) {\n                continue\n            }\n            buttons.push(button_id);\n\n            button.addEventListener('click', () => {\n                if (!clicking) {\n                    stop = true;\n                }\n            })\n        }\n\n        // Interval has inconsistancies\n        let index = 0;\n        let func = () => {\n            if (stop) {\n                return;\n            }\n\n            index = (index + 1) % buttons.length;\n            clicking = true;\n            document.getElementById(buttons[index])?.click();\n            clicking = false;\n\n            setTimeout(func, 5000)\n        };\n        setTimeout(func, 5000);\n    }\n}\n","import ModalAttrBinding from './bindings/ModalAttrBinding';\nimport ScrollToBinding from './bindings/ScrollToBinding';\nimport DropdownBinding from './bindings/DropdownBinding';\nimport TooltipBinding from './bindings/TooltipBinding';\nimport PasswordToggleBinding from './bindings/PasswordToggleBinding';\nimport ElementInViewBinding from './bindings/ElementInViewBinding';\nimport {yieldThread} from './utils';\nimport ToggleChatBinding from './bindings/ToggleChatBinding';\nimport ClickRotate from \"./bindings/ClickRotate\";\n\n\nexport abstract class Integration {\n    constructor() {\n        this.setupSentry();\n        this.setupGlobalModules();\n        this.setupModels();\n        this.setupServices();\n        this.configureServices();\n        yieldThread().then(() => {\n            this.setupApps();\n        })\n    }\n    setupSentry(): void {};\n    configureServices(): void {};\n    setupGlobalModules(): void {\n        ModalAttrBinding();\n        ScrollToBinding();\n        DropdownBinding();\n        TooltipBinding();\n        PasswordToggleBinding();\n        ElementInViewBinding();\n        ToggleChatBinding();\n        ClickRotate();\n    };\n\n    abstract setupModels(): void;\n    abstract setupServices(): void;\n    abstract setupApps(): void;\n}\n","import VueApp from '../../adapters/VueApp';\nimport {data} from '../../adapters/VueComponent';\n\nexport class DropdownApp extends VueApp {\n    @data()\n    active: any;\n\n    constructor() {\n        super();\n    }\n}","export function span(str, color) {\n    return [\n        'span',\n        {\n            style: `color: ${color}`\n        },\n        str\n    ]\n}\n\nexport function object(obj, config?) {\n    return [\n        'object',\n        {\n            object: obj,\n            config: config\n        }\n    ]\n}\nexport function displayKey(obj, key) {\n    return [\n        'div',\n        span(key, '#81b6e3'),\n        span(': ', 'white'),\n        obj[key] != undefined ? object(obj[key]) : span('undefined', '#7b7b7b')\n    ]\n}","import APIResponse from '../models/APIResponse';\nimport {span, object, displayKey} from './utils';\n\nlet ApiResponseFormatter = {\n    header: function (obj, config) {\n        if (!(obj instanceof APIResponse)) {\n            return null;\n        }\n\n        if (config && config.skip) {\n            return null;\n        }\n\n        return [\n            'div',\n            span('APIResponse', '#ffc48a'),\n            span('<', '#ffc48a'),\n            span(`${obj.model.name}`, '#d0ff8a'),\n            span('>', '#ffc48a')\n        ]\n    },\n    hasBody: function (obj, config) {\n        return true;\n    },\n    body: function (obj, config) {\n        return [\n            'div',\n            displayKey(obj, 'items'),\n            displayKey(obj, 'totalCount'),\n            displayKey(obj, 'limit'),\n            displayKey(obj, 'offset'),\n            displayKey(obj, '$promise'),\n            displayKey(obj, '$resolved'),\n            object(obj, {skip: true})\n        ]\n    }\n}\n\nexport default ApiResponseFormatter;","import {Model} from '../models/Model';\nimport {displayKey, object, span} from './utils';\n\nlet ModelFormatter = {\n    header: function (obj, config) {\n        if (!(obj instanceof Model)) {\n            return null;\n        }\n\n        if (config && config.skip) {\n            return null;\n        }\n\n        if (!obj.id) {\n            return [\n                'div',\n                span('Model', '#ffc48a'),\n                span('<', '#ffc48a'),\n                span(`${obj.constructor.name}`, '#d0ff8a'),\n                span('>', '#ffc48a')\n            ]\n        }\n        else {\n            return [\n                'div',\n                span('Model', '#ffc48a'),\n                span('<', '#ffc48a'),\n                span(`${obj.constructor.name}`, '#d0ff8a'),\n                span(':', '#ffc48a'),\n                span(`${obj.id}`, '#8ac5ff'),\n                span('>', '#ffc48a')\n            ]\n        }\n    },\n    hasBody: function (obj, config) {\n        return true;\n    },\n    body: function (obj: Model, config) {\n        return [\n            'div',\n            displayKey(obj, 'resource_uri'),\n            ...obj.getFields().map(v => displayKey(obj, v)),\n            displayKey(obj, '$promise'),\n            displayKey(obj, '$resolved'),\n            object(obj, {skip: true})]\n    }\n}\n\nexport default ModelFormatter;","import VueApp from '../../../core/adapters/VueApp';\nimport {data, method} from '../../../core/adapters/VueComponent';\nimport MobileMixin from '../../../core/mixins/MobileMixin';\n\nexport default class PageSearch extends VueApp {\n    static override mixins = [MobileMixin]\n\n    @data()\n    categories = Object.create(null);\n\n    @data()\n    material_filters = Object.create(null);\n\n    @data()\n    query: string;\n\n    @data()\n    show_filters: boolean;\n\n    override beforeMount() {\n        super.beforeMount();\n\n        let url = new URL(window.location.href);\n\n        this.query = url.searchParams.get('q');\n\n        if (url.searchParams.get('category')) {\n            let selected_categories = (url.searchParams.get('category') || '').split(',');\n\n            for (const category of selected_categories) {\n                this.categories[category] = true;\n            }\n        }\n\n        if (url.searchParams.get('filter')) {\n            let selected_material_filters = url.searchParams.get('filter').split(',');\n\n            for (const filter of selected_material_filters) {\n                this.material_filters[filter] = true;\n            }\n        }\n    }\n\n    override mounted() {\n        super.mounted();\n    }\n\n    @method()\n    search() {\n        let url = new URL(window.location.origin + window.location.pathname);\n\n        url.searchParams.set('q', this.query);\n\n        let category_list = Object.keys(this.categories).filter(v => this.categories[v]);\n        let filters_list = Object.keys(this.material_filters).filter(v => this.material_filters[v]);\n\n        if (category_list.length > 0) {\n            url.searchParams.set('category', category_list.join(','));\n        }\n        if (filters_list.length > 0) {\n            url.searchParams.set('filter', filters_list.join(','));\n        }\n\n        window.location.href = url.href;\n    }\n\n    @method()\n    toggleAdvancedFilters() {\n        document.getElementById('advanced-filters').classList.toggle('desktop-only');\n    }\n}\n","import {Route} from './RouteService';\n\nexport const StorefrontRouteList: Route[] = [\n    new Route('marketplace:product', '/products/:categoryPath*/marketplace/:productSlug/'),\n    new Route('marketplace:product-edit', '/products/:categoryPath*/marketplace/:productSlug/:configuredId/'),\n    new Route('svgcustom:product', '/products/:categoryPath*/product/details/:productSlug/'),\n    new Route('svgcustom:product-edit', '/products/:categoryPath*/product/details/:productSlug/:configuredId/'),\n    new Route('svgcustom:basic-customize', '/products/:categoryPath*/details/:productSlug/customize/:colorId/'),\n    new Route('svgcustom:basic-customize-saved', '/products/:categoryPath*/details/:productSlug/:configuredId/customize/:colorId/'),\n    new Route('svgcustom:basic', '/products/:categoryPath*/details/:productSlug/'),\n    new Route('svgcustom:basic-edit', '/products/:categoryPath*/details/:productSlug/:configuredId/'),\n    new Route('svgcustom:setup', '/products/:categoryPath*/setup/:productSlug/'),\n    new Route('svgcustom:setup-edit', '/products/:categoryPath*/setup/:productSlug/:configuredId/'),\n    new Route('svgcustom:upload', '/products/:categoryPath*/upload/:productSlug/:configuredId/'),\n    new Route('svgcustom:finalize', '/products/:categoryPath*/finalize/:productSlug/:configuredId/'),\n    new Route('svgcustom:preview', '/products/:categoryPath*/preview/:productSlug/'),\n    new Route('svgcustom:preview-edit', '/products/:categoryPath*/preview/:productSlug/:configuredId/'),\n    new Route('svgcustom:personalize', '/products/:categoryPath*/personalize/:productSlug/'),\n    new Route('svgcustom:personalize-edit', '/products/:categoryPath*/personalize/:productSlug/:configuredId/'),\n    new Route('svgcustom:lettering-new', '/products/:categoryPath*/lettering/:productSlug/'),\n    new Route('svgcustom:lettering-edit', '/products/:categoryPath*/lettering/:productSlug/:configuredId/'),\n    new Route('svgcustom:customize-any-sticker', '/products/customize-any-sticker/'),\n    new Route('svgcustom:ddb', '/products/:categoryPath*/ddb/:productSlug/'),\n    new Route('svgcustom:ddb-edit', '/products/:categoryPath*/ddb/:productSlug/:configuredId/'),\n    new Route('gallery:list', '/gallery/images/'),\n    new Route('gallery:videos', '/gallery/videos/'),\n    new Route('gallery:list-pagination', '/gallery/images/:page/'),\n    new Route('gallery:list-category-pagination', '/gallery/images/:category/:page/'),\n    new Route('gallery:list-products', '/gallery/products/:product/'),\n    new Route('gallery:list-products-pagination', '/gallery/products/:product/:page/'),\n    new Route('gallery:image', '/gallery/image/:slug/'),\n    new Route('gallery:video', '/gallery/video/:slug/'),\n    new Route('vectorization', '/vectorization/'),\n    new Route('blog:post', '/blog/post/:slug/'),\n    new Route('blog:list', '/blog/'),\n    new Route('blog:list-pagination', '/blog/:page/'),\n    new Route('blog:category-list', '/blog/category/:category/'),\n    new Route('blog:category-list-pagination', '/blog/category/:category/:page/'),\n    new Route('blog:search-list', '/blog/search/:search/'),\n    new Route('blog:search-list-pagination', '/blog/search/:search/:page/'),\n    new Route('blog:date-list', '/blog/date/:year/:month/'),\n    new Route('blog:date-list-pagination', '/blog/date/:year/:month/:page/'),\n    new Route('faq:index', '/faqs/'),\n    new Route('faq:category', '/faqs/:category/'),\n    new Route('faq:detail', '/faqs/:category/:questionSlug/'),\n    new Route('cart:index', '/cart/'),\n    new Route('testimonial:index', '/testimonials/'),\n    new Route('testimonial:index-pagination', '/testimonials/:page/'),\n    new Route('testimonial:category', '/testimonials/:category/'),\n    new Route('testimonial:category-pagination', '/testimonials/:category/:page/'),\n    new Route('testimonial:detail', '/testimonial/:id/'),\n    new Route('testimonials:imageRequest', '/testimonial-image-request/'),\n    new Route('checkout:index', '/checkout/'),\n    new Route('checkout:thank-you', '/checkout/thank-you/:id/'),\n    new Route('gift-cards', '/products/gift-cards/'),\n    new Route('materials:white-vinyl', '/sticker-materials/white-vinyl/'),\n    new Route('materials:white-repositionable-vinyl', '/sticker-materials/white-repositionable-vinyl/'),\n    new Route('materials:front-facing-adhesive', '/sticker-materials/front-facing-adhesive/'),\n    new Route('materials:clear-vinyl', '/sticker-materials/clear-vinyl/'),\n    new Route('materials:reflective-vinyl', '/sticker-materials/reflective-vinyl/'),\n    new Route('materials:permanent-adhesive', '/sticker-materials/permanent-adhesive/'),\n    new Route('materials:white-cling', '/sticker-materials/white-cling/'),\n    new Route('materials:clear-cling', '/sticker-materials/clear-cling/'),\n    new Route('materials:front-facing-cling', '/sticker-materials/front-facing-cling/'),\n    new Route('materials:glow-in-the-dark-vinyl', '/sticker-materials/glow-in-the-dark-vinyl/'),\n    new Route('materials:perforated-film', '/sticker-materials/perforated-film/'),\n    new Route('materials:magnet', '/sticker-materials/magnet/'),\n    new Route('svgcustom:product-details', '/storefront/standard-product-details/:productSlug/'),\n    new Route('home', '/'),\n    new Route('contact-us', '/contact-us/'),\n    new Route('colors', '/sticker-colors/'),\n    new Route('fonts', '/fonts/'),\n    new Route('materials', '/sticker-materials/'),\n    new Route('privacy', '/privacy-policy/'),\n    new Route('terms', '/terms-and-conditions/'),\n    new Route('about', '/about-carstickers/'),\n    new Route('instructions', '/sticker-application-instructions/'),\n    new Route('instructions:large-transfer', '/sticker-application-instructions/large-transfer-stickers/'),\n    new Route('instructions:die-cut', '/sticker-application-instructions/large-die-cut-stickers/'),\n    new Route('instructions:windshield', '/sticker-application-instructions/large-windshield-stickers/'),\n    new Route('instructions:transfer', '/sticker-application-instructions/transfer-sticker-preparation/'),\n    new Route('instructions:family', '/sticker-application-instructions/family-stickers/'),\n    new Route('userprofile:account', '/profile/account/'),\n    new Route('userprofile:designs', '/profile/designs/'),\n    new Route('userprofile:design', '/profile/designs/view/:id/'),\n    new Route('userprofile:folder', '/profile/designs/folder/:id/'),\n    new Route('userprofile:orders', '/profile/orders/'),\n    new Route('userprofile:reviews', '/profile/reviews/'),\n    new Route('userprofile:review', '/profile/review/:id/'),\n    new Route('userprofile:orders-pagination', '/profile/orders/:page/'),\n    new Route('userprofile:order-details', '/profile/orders/order/:orderId/'),\n    new Route('userprofile:shipments', '/profile/shipments/'),\n    new Route('userprofile:addresses', '/profile/addresses/'),\n    new Route('userprofile:credit', '/profile/credit/'),\n    new Route('userprofile:nonprofit', '/profile/nonprofit/'),\n    new Route('userprofile:proofs', '/profile/proofs/'),\n    new Route('userprofile:proof', '/profile/proofs/:proofId/'),\n    new Route('userprofile:address-edit', '/profile/address/:id/'),\n    new Route('userprofile:address-add', '/profile/address/add/'),\n    new Route('search', '/search/:query?/'),\n    new Route('search-pagination', '/search/:query/:page/'),\n    new Route('marketing:why-buy-from-us', '/why-buy-from-us/'),\n    new Route('category:detail', '/products/:categoryPath*/'),\n    new Route('nonprofit', '/nonprofit/'),\n    new Route('payments:invoice-list', '/payments/invoices/'),\n    new Route('payments:invoice-detail', '/payments/invoices/:id/'),\n    new Route('userprofile:wholesale', '/profile/wholesale/'),\n    new Route('recommended:personalized', '/products/recommended/personalized/'),\n    new Route('recommended:category', '/products/recommended/category/'),\n    new Route('admin:template', '/admin/svgcustom/template/:id/change/'),\n    new Route('order:invoice', '/order/invoice/:id/'),\n    new Route('referral:index', '/referral/:uuid/')\n];","import VueApp from '../../../core/adapters/VueApp';\nimport {data, method} from '../../../core/adapters/VueComponent';\nimport MessageList from '../../../core/utils/MessageList';\nimport {Services} from '../../../core/services/Services';\nimport {Http} from '../../../core/services/Http';\nimport {processRequestError} from '../../../core/utils/utils';\n\nexport class SubscribeApp extends VueApp {\n    @data()\n    errors: MessageList = new MessageList();\n\n    @data()\n    successes: MessageList = new MessageList();\n\n    @data()\n    email: string;\n\n    @data()\n    processing: boolean;\n\n    @method()\n    subscribe(): void {\n        this.errors = new MessageList();\n        this.successes = new MessageList();\n\n        if (!this.email || this.email.trim() == '') {\n            this.errors.add('email', 'This field is required.')\n            return;\n        }\n\n        this.processing = true;\n        Services.get<Http>('$http').request({\n            url: '/profile/api/request-subscription/',\n            method: 'POST',\n            data: {\n                email: this.email\n            }\n        }).then((response) => {\n            this.processing = false;\n            if (response.data.message) {\n                this.successes.add('email', response.data.message);\n            }\n            else {\n                this.successes.add('email', 'A confirmation email has been sent to your inbox.')\n            }\n        }, (error) => {\n            this.processing = false;\n            this.errors = processRequestError(error);\n        });\n    }\n}","import VueApp from '../../../core/adapters/VueApp';\nimport {data, method} from '../../../core/adapters/VueComponent';\n\nexport default class ProductTabGroup extends VueApp {\n\n    @data()\n    selection: string = 'details-section';\n\n    @method()\n    setSelection(item) {\n        document.getElementById(this.selection)?.classList.add('hidden');\n        document.getElementById(item)?.classList.remove('hidden');\n        this.selection = item;\n    }\n}","/*\n    Core.ts\n\n    This file contains all of the core features that are loaded on the majority or all pages.\n    The components must have all of their required models and services included in this file.\n\n    All other functionality should be moved into its own file with a entry point set in the\n    webpack.config.js file. You will need to include the generated javascript file using\n    django and the additional_scripts block. This will reduce the size of the javascript files\n    and loading time for the website.\n\n    According to google:\n    1-3 seconds load time increase the bounce rate probability by 32%\n    1-5 seconds load time increase the bounce rate probability by 90%\n    1-6 seconds load time increase the bounce rate probability by 106%\n    1-10 seconds load time increase the bounce rate probability by 123%\n\n    Google also uses the loading speed as a search result ranging signal.\n */\n\n// Register sentry first so we can log errors that show up during the setup process\nimport {Services} from '../../ts/core/services/Services';\nimport registerCoreServices from '../../ts/core/services/init';\nimport registerChatServices from '../../ts/apps/chat/services/init';\nimport registerUserServices from '../../ts/apps/userprofile/services/init';\n\nimport registerUserModels from '../../ts/apps/userprofile/models/init';\nimport registerChatModels from '../../ts/apps/chat/models/init';\n\nimport VueApp from '../../ts/core/adapters/VueApp';\n\nimport registerChatComponents from '../../ts/apps/chat/components/init';\nimport registerCoreComponents from '../../ts/core/components/init';\nimport registerLoginComponents from '../../ts/apps/login/components/init';\n\nimport CarouselSliderApp from '../../ts/core/apps/CarouselSlider/CarouselSlider';\n\nimport DelayedSrcObserver from '../../ts/core/utils/DelayedSrcObserver';\nimport {RotatingBannerApp} from '../../ts/apps/marketing/components/RotatingBanner/RotatingBanner';\n\nimport BackendAlertApp from '../../ts/core/apps/BackendAlerts/BackendAlertApp';\n\nimport {Integration} from '../../ts/core/utils/Integration';\nimport {DropdownApp} from '../../ts/core/apps/Dropdown/DropdownApp';\nimport ApiResponseFormatter from '../../ts/core/formatters/APIResponseFormatter';\nimport ModelFormatter from '../../ts/core/formatters/ModelFormatter';\nimport PageSearch from '../../ts/apps/search/apps/PageSearch';\nimport {StorefrontRouteList} from '../../ts/core/services/StorefrontRouteList';\nimport {SubscribeApp} from '../../ts/apps/marketing/apps/SubscribeApp';\nimport ProductTabGroup from '../../ts/apps/products_shared/apps/ProductTabGroup';\nimport {polyfillHeaderAnchor} from \"../../ts/core/utils/AnchorPolyfill\";\nimport {parseSafeCSV} from \"../../ts/core/utils/CSV\";\n\n\n// Why is this not optional!!!!!\n(window as any)['process'] = {\n    env: {\n        NODE_ENV: 'production'\n    }\n};\n\n\nexport default abstract class CoreIntegration extends Integration {\n\n    override setupGlobalModules(): void {\n        super.setupGlobalModules();\n        DelayedSrcObserver();\n    }\n\n    setupModels(): void {\n        // Models\n        registerUserModels();\n        registerChatModels();\n    }\n\n    setupServices(): void {\n        window['Services'] = Services;\n\n        Services.registerObject('RouteList', StorefrontRouteList);\n\n        // Services\n        registerCoreServices(Services);\n        registerChatServices(Services);\n        registerUserServices(Services);\n    }\n\n    override configureServices(): void {\n        Services.resolve('loaded-core');\n    }\n\n    setupApps(): void {\n        // ======= Chat App ========= \\\\\n        VueApp.mount('#chat-app', (app) => {\n            registerChatComponents(app);\n            registerCoreComponents(app);\n        });\n\n        VueApp.mount('#login-app', (app) => {\n            registerCoreComponents(app);\n            registerLoginComponents(app);\n        });\n\n        CarouselSliderApp.mount('#carousel-app');\n        DropdownApp.mount('#dropdown-app');\n        RotatingBannerApp.mount('#rotating-banner-app');\n        BackendAlertApp.mount('#backend-alerts-app');\n        PageSearch.mount('#product-search-app');\n\n        SubscribeApp.mount('#subscribe-app', (app) => {\n            registerCoreComponents(app);\n        });\n\n        ProductTabGroup.mount('#product-tab-group-app');\n\n        polyfillHeaderAnchor();\n    }\n}\n\nif (!window['devtoolsFormatters']) {\n    window['devtoolsFormatters'] = [];\n}\nwindow['devtoolsFormatters'].push(ApiResponseFormatter);\nwindow['devtoolsFormatters'].push(ModelFormatter);","export default function DelayedSrcObserver() {\n    // Does not work with elements that have position: absolute\n    // See: https://stackoverflow.com/questions/65736386/intersectionobserver-and-position-absolute\n\n    for (const el of document.querySelectorAll('[delayed-src]')) {\n        let linked = false;\n        let link = (entry, observer) => {\n            if (linked) {\n                return;\n            }\n            if (!entry || entry[0].isIntersecting) {\n                el.setAttribute('src', el.getAttribute('delayed-src'))\n                linked = true;\n\n                if (observer) {\n                    observer.unobserve(el);\n                }\n            }\n        }\n\n        // If IntersectionObserver is support the use it, if not lets just load the video and not worry about a polyfill\n        if ('IntersectionObserver' in window) {\n            let options = {\n                root: null,\n                rootMargin: '0px',\n                threshold: 0\n            }\n\n            const observer = new IntersectionObserver(link, options);\n            observer.observe(el);\n        }\n        else {\n            link(null, null);\n        }\n    }\n}","import {Model, TModelDefinitionList} from '../../../core/models/Model';\nimport {User} from './User';\nimport {UserAddress} from './UserAddress';\nimport {UserInStoreCreditTransaction} from './UserInStoreCreditTransaction';\nimport {WholesaleAccount} from './WholesaleAccount';\nimport {WholesaleApplication} from './WholesaleApplication';\nimport {WholesaleMembership} from './WholesaleMemebership';\nimport {ShippingAccount} from \"./ShippingAccount\";\n\nexport default function registerModels(): void {\n    const models: TModelDefinitionList = {\n        'User': User,\n        'UserAddress': UserAddress,\n        'UserInStoreCreditTransaction': UserInStoreCreditTransaction,\n        'WholesaleAccount': WholesaleAccount,\n        'WholesaleApplication': WholesaleApplication,\n        'WholesaleMembership': WholesaleMembership,\n        'ShippingAccount': ShippingAccount\n    };\n\n    Model.registerModels(models);\n}\n","import {Model, TModelDefinitionList} from '../../../core/models/Model';\nimport {ChatLine} from \"./ChatLine\";\nimport {ChatEvent} from './ChatEvent';\nimport {ChatRoom} from './ChatRoom';\nimport {ChatFile} from './ChatFile';\n\nexport default function registerModels(): void {\n    const models: TModelDefinitionList = {\n        'ChatLine': ChatLine,\n        'ChatRoom': ChatRoom,\n        'ChatEvent': ChatEvent,\n        'ChatFile': ChatFile\n    };\n\n    Model.registerModels(models);\n}\n","import {IServices} from './Services';\nimport Company from './Company';\nimport ModelSyncService from './ModelSyncService';\nimport CookieManager from './CookieManager';\nimport {Http} from './Http';\nimport RouteService from './RouteService';\nimport NamedRouteService from './NamedRouteService';\nimport {Analytics} from './Analytics';\nimport Debug from './Debug';\nimport {HttpUpload} from './HttpUpload';\nimport BasicStorageManager from './BasicStorageManager';\nimport {LocalStorage} from './LocalStorage';\n\nexport default function registerServices(services: IServices) {\n    // Register core services and adapters\n    services.singleton('$http', Http);\n    services.singleton('$upload', HttpUpload)\n    if (navigator.cookieEnabled && CookieManager.enabled()) {\n        services.registerClass('$cookies', CookieManager);\n    }\n    else {\n        // A lot more will be broken than just the javascript due to CSRF rules but lets do this anyway for good measure\n        console.warn('Cookies are not enabled. This may cause unexpected issues.')\n        services.singleton('$cookies', BasicStorageManager);\n    }\n    services.singleton('Company', Company);\n    services.singleton('ModelSyncService', ModelSyncService);\n    services.singleton('RouteService', RouteService)\n    services.singleton('$NamedRouteService', NamedRouteService);\n    services.singleton('Analytics', Analytics);\n    services.singleton('Debug', Debug);\n    services.singleton('LocalStorage', LocalStorage);\n}","import {IServices} from '../../../core/services/Services';\nimport ChatService from './ChatService';\n\nexport default function registerServices(services: IServices) {\n    services.singleton('ChatService', ChatService)\n}","import {IServices} from '../../../core/services/Services';\nimport UserProfileService from './UserProfileService';\nimport UserAddressService from './UserAddressService';\nimport UserProductService from './UserProductService';\n\nexport default function registerServices(services: IServices) {\n    services.singleton('UserProfileService', UserProfileService);\n    services.singleton('UserAddressService', UserAddressService);\n    services.singleton('UserProductService', UserProductService)\n}","import Chat from './Chat/Chat';\nimport ChatBubble from './ChatBubble/ChatBubble';\nimport ChatHeader from './ChatHeader/ChatHeader';\nimport ChatInputArea from './ChatInputArea/ChatInputArea';\nimport VueApp from '../../../core/adapters/VueApp';\n\n\nexport default function registerComponents(vue_app: VueApp) {\n    // Add all chat components to core, its loaded on every page\n    vue_app.registerComponent(Chat);\n    vue_app.registerComponent(ChatBubble);\n    vue_app.registerComponent(ChatHeader);\n    vue_app.registerComponent(ChatInputArea);\n}\n","// There is no good way to polyfill anchors so each use needs to be adjusted according to its use\n// Remove when support reaches 98%. This will probably be around 2030...\n\nexport function polyfillHeaderAnchor() {\n    if (!document.querySelector('#topNav') || !document.querySelector('.header-dropdown')) {\n        return;\n    }\n    if (window.getComputedStyle(document.querySelector('.header-dropdown'))['positionAnchor'] != 'auto') {\n        let box = document.querySelector('#topNav').getBoundingClientRect();\n        let height = box.top + box.height;\n        if (isNaN(height)) {\n            return;\n        }\n        document.documentElement.style.setProperty(\"--mobile-menu-offset\", `${height}px`);\n    }\n}","import {Services} from '../../../common/ts/core/services/Services';\nimport Company from '../../../common/ts/core/services/Company';\nimport CoreIntegration from '../../../common/integrations/ts/Core';\nimport * as Sentry from '@sentry/browser';\nimport {Analytics} from '../../../common/ts/core/services/Analytics';\n\nclass CarStickersCoreIntegration extends CoreIntegration {\n    override setupSentry() {\n        let environment = 'production';\n        if (window.location.origin.indexOf('localhost') != -1) {\n            environment = 'development';\n        }\n        else if (window.location.origin.indexOf('staging') != -1) {\n            environment = 'staging';\n        }\n\n        // Dont log with development environment\n        if (environment != 'development') {\n            Sentry.init({\n                dsn: \"https://e85f8c30a66d4e0290546d13358a6201@o116203.ingest.sentry.io/5597605\",\n\n                // To set your release version\n                release: \"carstickers-frontend@2.8.0\",\n                integrations: [Sentry.browserTracingIntegration(),],\n\n                // Set tracesSampleRate to 1.0 to capture 100% of transactions for performance monitoring.\n                // Until we upgrade our account and want to use performance sampling this is being disabled\n                tracesSampleRate: 0,\n                environment: environment,\n            });\n        }\n    }\n\n    override configureServices() {\n        Services.get<Company>('Company').setup(\n            'Car Stickers Inc.',\n            '844-647-2730',\n            'sales@carstickers.com',\n            '2146 NE 4th Street \\n ' +\n                    'Suite 100 \\n ' +\n                    'Bend, OR 97701',\n            'https://www.carstickers.com/static/img/logo-large.png',\n            'CarStickers',\n            'carstickers.com',\n            'https://www.facebook.com/carstickerscom/reviews/',\n            'https://www.yelp.com/writeareview/biz/14GjYO0wVEoi7TjfivDnww',\n            'https://www.google.com/search?q=Car+Stickers+Inc.#lrd=0x54b8c86dd7cdd411:0xacde6a97ea678204,3',\n            'carstickers'\n        );\n        Services.get<Company>('Company').pintrist_tracking_id = '2614022552397';\n\n        Services.get<Analytics>('Analytics').trackPage(window.location.pathname);\n\n        super.configureServices();\n    }\n}\nconst core = new CarStickersCoreIntegration();\n"],"names":["LoginState","html","LOGIN","RESET_PASSWORD","PASSKEY","EMAIL_LOGIN","REGISTER","PASSKEY_REGISTER","AccountLoginController","VueComponent","Ay","_classSuper","constructor","component","super","this","errors","__runInitializers","_instanceExtraInitializers","_errors_initializers","MessageList","A","successes","_errors_extraInitializers","_successes_initializers","processing","_successes_extraInitializers","_processing_initializers","response","_processing_extraInitializers","_response_initializers","state","_response_extraInitializers","_state_initializers","AccountLogin_html","f","username_email","_state_extraInitializers","_username_email_initializers","password","_username_email_extraInitializers","_password_initializers","modal","_password_extraInitializers","_modal_initializers","defaultRegister","_modal_extraInitializers","_defaultRegister_initializers","passkey_supported","_defaultRegister_extraInitializers","_passkey_supported_initializers","resetStates","Services","x","get","bind","$forceUpdate","utils","h7","then","supported","mounted","unmounted","unbind","resetMessages","loadLoginDefault","login_redirect","facebookEnabled","window","googleEnabled","appleEnabled","loginUrl","path","search_params","URLSearchParams","set","location","pathname","search","toString","login","$event","form","FormData","append","request","data","url","method","handleRedirect","error","handleResponseError","register","authenticated","message","add","resetPassword","emailLogin","close","document","getElementById","Modal","Oo","next","URL","href","searchParams","indexOf","origin","assign","includes","reload","status","De","trigger","passkeyRegister","params","username","publicKey","challenge","xB","user","id","allowCredentials","cred","navigator","credentials","create","passkeyLogin","setLoginDefault","default_value","swapToLogin","p","_w","EJ","__esDecorate","_a","_resetMessages_decorators","kind","name","static","private","access","has","obj","metadata","_metadata","_resetStates_decorators","_facebookEnabled_decorators","_googleEnabled_decorators","_appleEnabled_decorators","_loginUrl_decorators","_login_decorators","_register_decorators","_resetPassword_decorators","_emailLogin_decorators","_close_decorators","_passkeyRegister_decorators","_passkeyLogin_decorators","_setLoginDefault_decorators","_swapToLogin_decorators","_errors_decorators","value","_successes_decorators","_processing_decorators","_response_decorators","_state_decorators","_username_email_decorators","_password_decorators","_modal_decorators","_defaultRegister_decorators","_passkey_supported_decorators","_passkey_supported_extraInitializers","AccountLogin","controller","template","q","tag","AccountLoginModalController","ModalComponent","W","onClose","AccountLoginModal","registerComponents","vue_app","registerComponent","MetricOptions","METRIC","IMPERIAL","User","_core_models_Model__WEBPACK_IMPORTED_MODULE_1__","Kx","date_joined","_date_joined_initializers","default_billing_address","_date_joined_extraInitializers","_default_billing_address_initializers","default_shipping_address","_default_billing_address_extraInitializers","_default_shipping_address_initializers","email","_default_shipping_address_extraInitializers","_email_initializers","cell_number","_email_extraInitializers","_cell_number_initializers","in_store_credit","_cell_number_extraInitializers","_in_store_credit_initializers","currency","_in_store_credit_extraInitializers","_currency_initializers","in_store_credit_localized","_currency_extraInitializers","_in_store_credit_localized_initializers","currency_localized","_in_store_credit_localized_extraInitializers","_currency_localized_initializers","is_active","_currency_localized_extraInitializers","_is_active_initializers","last_login","_is_active_extraInitializers","_last_login_initializers","is_marketing_eligible","_last_login_extraInitializers","_is_marketing_eligible_initializers","metric_option","_is_marketing_eligible_extraInitializers","_metric_option_initializers","social","_metric_option_extraInitializers","_social_initializers","text_messaging_consent","_social_extraInitializers","_text_messaging_consent_initializers","rush_modifier","_text_messaging_consent_extraInitializers","_rush_modifier_initializers","_core_models_fields_Field__WEBPACK_IMPORTED_MODULE_0__","ZZ","_core_models_fields_ForeignKeyURIField__WEBPACK_IMPORTED_MODULE_2__","model","_date_joined_decorators","_default_billing_address_decorators","_default_shipping_address_decorators","_email_decorators","_cell_number_decorators","_in_store_credit_decorators","_currency_decorators","_in_store_credit_localized_decorators","_currency_localized_decorators","_is_active_decorators","_last_login_decorators","_is_marketing_eligible_decorators","_metric_option_decorators","_social_decorators","_text_messaging_consent_decorators","_rush_modifier_decorators","_rush_modifier_extraInitializers","uri","UserAddress","_constructor","country","label","first_name","last_name","street_address_1","street_address_2","city","country_area","postal_code","fullName","verify","_core_services_Services__WEBPACK_IMPORTED_MODULE_2__","getPostData","useVerifiedAddressCallback","callback","address_id","err","useVerifiedAddress","validate","_errors","remove","archived","_archived_initializers","_archived_extraInitializers","_city_initializers","city_area","_city_extraInitializers","_city_area_initializers","company_name","_city_area_extraInitializers","_company_name_initializers","_company_name_extraInitializers","_country_initializers","_country_extraInitializers","_country_area_initializers","default_billing","_country_area_extraInitializers","_default_billing_initializers","default_shipping","_default_billing_extraInitializers","_default_shipping_initializers","_default_shipping_extraInitializers","_first_name_initializers","_first_name_extraInitializers","_last_name_initializers","phone","_last_name_extraInitializers","_phone_initializers","_phone_extraInitializers","_postal_code_initializers","_postal_code_extraInitializers","_street_address_1_initializers","_street_address_1_extraInitializers","_street_address_2_initializers","parent","_street_address_2_extraInitializers","_parent_initializers","po_box","_parent_extraInitializers","_po_box_initializers","D0","required","_archived_decorators","_city_decorators","_city_area_decorators","_company_name_decorators","_country_decorators","_country_area_decorators","_default_billing_decorators","_default_shipping_decorators","_first_name_decorators","_last_name_decorators","_phone_decorators","_postal_code_decorators","_street_address_1_decorators","_street_address_2_decorators","_parent_decorators","_po_box_decorators","_po_box_extraInitializers","DuplicateFilterException","Error","DuplicateServiceException","UndefinedServiceException","ModalController","_VueComponent__WEBPACK_IMPORTED_MODULE_0__","modal_id","observer","_modal_id_initializers","modal_uuid","_modal_id_extraInitializers","_modal_uuid_initializers","isOpen","_modal_uuid_extraInitializers","_isOpen_initializers","console","generate_modal_id","max","uuid","_utils_uuid__WEBPACK_IMPORTED_MODULE_2__","e","slice","uuids","push","modal_element","$el","nodeType","Node","ELEMENT_NODE","parentNode","dynamic_id","querySelector","qry","MutationObserver","mutations","class_change","mutation","attributeName","classList","contains","onOpen","observe","attributes","reset","open","_utils_Modal__WEBPACK_IMPORTED_MODULE_1__","qf","_open_decorators","_modal_id_decorators","_modal_uuid_decorators","_isOpen_decorators","_isOpen_extraInitializers","ClickOutside","directive","beforeMount","el","binding","vnode","clickOutsideEvent","event","target","body","addEventListener","removeEventListener","Dropdown","root","button","children","list","find","v","config","dropdownOnButtonClickEvent","nodeName","preventDefault","focus","toggle","KeyboardEvent","code","MouseEvent","stay_open","on_close","permanent","CopyToClipboard","key","elementToCopy","tagName","lW","select","innerHTML","Tooltip","GD","content","position","tippy_esm","placement","theme","animation","delay","beforeUnmount","unmount","PasswordToggle","input","toggle_button","is_password","getAttribute","setAttribute","ToggleInSideScrollView","check","parent_bounds","parentElement","getBoundingClientRect","bounds","left","width","right","passive","InnerScrollTo","left_offset","offsetLeft","gap","computedStyleMap","parseInt","scroll","behavior","FileHover","element_counter","window_counter","drag_enter","drag_leave","window_drag_enter","window_drag_leave","drag_end","VueApp","VueItem","registered_tags","app","buildApp","onComponentCreation","mixin_instances","mixin","Object","values","registerAsyncConfig","tags","import_function","async_component","vue_esm_bundler","$V","Promise","resolve","reject","imported","default","buildComponent","registerAsyncComponent","config_function","requires","item","registerVueComponentConfig","registerComponentManually","Cls","buildMethods","instance_class","methods","methods_list","method_function_name","args","ctrl","function_instance","findFunctionInstance","mixins","buildPropsList","props_list","prop","buildPropWatchers","prop_watchers","watch","new_value","old_value","Model","$resolved","$promise","APIResponse","buildComputed","computed","computed_list","computed_function_name","getOwnPropertyDescriptor","prototype","previous","buildEmits","emits","emits_list","emit","ic","created","beforeCreate","getList","$inject","beforeUpdate","updated","activated","deactivated","errorCaptured","instance","info","i","renderTracked","renderTriggered","props","app_instance","Ef","registerFilter","func","GLOBAL_FILTERS","error_msg","Exceptions","nb","registerDirective","config_func","onMount","selector","globalProperties","$filters","mount","isRegistered","mounted_list","app_component_list","setup","now","init","init_app","Date","E","isNaN","Number","trace","esm_exports","Cp","toLocaleString","language","style","date","format","dayjs_min_default","extend","localizedFormat_default","d","year","uppercase","String","toUpperCase","lowercase","toLowerCase","floatformat","decimal_places","toFixed","shortNumber","parsed","nlToArray","text","strToArray","separator","lines","split","map","line","trim","idx","splice","dupes","dupe","Array","join","orderBy","array","reversed","formatter","Symbol","iterator","array_copy","sort","a","b","av","bv","route","route_name","kwargs","reverse","number","num","precision","convertMeasurement","show_unit","converted","convertSizeFromInches","unit","size_notation","qE","static_path","showDarkModeOption","mR","clamp","characters","length","range","y1","context","type","addInitializer","setupBinding","_utils_EventDispatcher__WEBPACK_IMPORTED_MODULE_3__","Q","once","unbindWithContext","_models_Model__WEBPACK_IMPORTED_MODULE_2__","isResolved","_models_APIResponse__WEBPACK_IMPORTED_MODULE_1__","$props","defineProperty","undefined","$emit","enumerable","configurable","nothing","ref","current_value","ref_action","_utils_metadata__WEBPACK_IMPORTED_MODULE_4__","y","$data","$refs","_VueItem__WEBPACK_IMPORTED_MODULE_0__","services","captureVueException","$options","__name","_sentry_browser__WEBPACK_IMPORTED_MODULE_0__","contexts","vue","error_source","_utils_EventDispatcher__WEBPACK_IMPORTED_MODULE_2__","field_map","hasOwnProperty","current","_utils_metadata__WEBPACK_IMPORTED_MODULE_3__","getPrototypeOf","fields","keys","filter","bound_data","bound_ref_data","mapped","SLOT_SYNC","starting_data_set","data_init","mixin_class","_services_Services__WEBPACK_IMPORTED_MODULE_1__","instance_check","starting_data","parent_controller","$","ctx","warn","clearAllEvents","$destroyed","$parent","$root","$slots","$attrs","$watch","$nextTick","class_props_list","VueMixin","bindComponent","ErrorListController","filtered_errors","field","merged","Set","_field_initializers","EW","_filtered_errors_decorators","_field_decorators","_field_extraInitializers","ErrorList","GenericDropdownController","items","GenericDropdown_runInitializers","_items_initializers","selected","_items_extraInitializers","_selected_initializers","none","_selected_extraInitializers","_none_initializers","triggerFunction","_none_extraInitializers","_triggerFunction_initializers","hideNone","_triggerFunction_extraInitializers","_hideNone_initializers","placeholder","_hideNone_extraInitializers","_placeholder_initializers","_placeholder_extraInitializers","_label_initializers","nameField","_label_extraInitializers","_nameField_initializers","_nameField_extraInitializers","nameFunction","_nameFunction_initializers","_nameFunction_extraInitializers","_search_initializers","query","_search_extraInitializers","_query_initializers","noneLast","_query_extraInitializers","_noneLast_initializers","nameFromItems","_noneLast_extraInitializers","_nameFromItems_initializers","searchType","_nameFromItems_extraInitializers","_searchType_initializers","autocomplete","_searchType_extraInitializers","_autocomplete_initializers","autocomplete_value","_autocomplete_extraInitializers","_autocomplete_value_initializers","selection_index","_autocomplete_value_extraInitializers","_selection_index_initializers","nonePlaceholder","_selection_index_extraInitializers","_nonePlaceholder_initializers","test","_nonePlaceholder_extraInitializers","_test_initializers","setSelectionIndex","log","anyVisible","display","getSelectedName","nameFieldOrDefault","getName","short","old","isSelected","isItemSelected","equals","focusFirstListElement","list_element","nextElementSibling","preventScroll","tabUp","tabDown","dropdownRoot","autofillFromSelected","checkAutocomplete","GenericDropdown_esDecorate","_anyVisible_decorators","_display_decorators","_getSelectedName_decorators","_getName_decorators","_select_decorators","_isSelected_decorators","_focusFirstListElement_decorators","_tabUp_decorators","_tabDown_decorators","_autofillFromSelected_decorators","_checkAutocomplete_decorators","_items_decorators","_selected_decorators","_none_decorators","_triggerFunction_decorators","_hideNone_decorators","_placeholder_decorators","_label_decorators","_nameField_decorators","_nameFunction_decorators","_search_decorators","_query_decorators","_noneLast_decorators","_nameFromItems_decorators","_searchType_decorators","_autocomplete_decorators","_autocomplete_value_decorators","_selection_index_decorators","_nonePlaceholder_decorators","_test_decorators","_test_extraInitializers","MobileMixin","GenericDropdown","PaginatorPage","page","showFirst","_url","parts","param","replace","PaginatorController","Paginator_runInitializers","_page_initializers","_page_extraInitializers","_url_initializers","limit","_url_extraInitializers","_limit_initializers","total","_limit_extraInitializers","_total_initializers","_total_extraInitializers","_showFirst_initializers","change","_showFirst_extraInitializers","_change_initializers","limits","_change_extraInitializers","_limits_initializers","jumpto","_limits_extraInitializers","_jumpto_initializers","_jumpto_extraInitializers","_key_initializers","small","_key_extraInitializers","_small_initializers","showPrevious","_small_extraInitializers","_showPrevious_initializers","showNext","_showPrevious_extraInitializers","_showNext_initializers","pages","_showNext_extraInitializers","_pages_initializers","first","_pages_extraInitializers","_first_initializers","last","_first_extraInitializers","_last_initializers","_last_extraInitializers","_previous_initializers","_previous_extraInitializers","_next_initializers","pageCount","_next_extraInitializers","_pageCount_initializers","createPages","changePage","pageTo","getCurrentPage","some","page_value","Math","ceil","isValid","isFinite","addDefaultLimit","Paginator_esDecorate","_isValid_decorators","_page_decorators","_url_decorators","_limit_decorators","_total_decorators","_showFirst_decorators","_change_decorators","_limits_decorators","_jumpto_decorators","_key_decorators","_small_decorators","_showPrevious_decorators","_showNext_decorators","_pages_decorators","_first_decorators","_last_decorators","_previous_decorators","_next_decorators","_pageCount_decorators","_pageCount_extraInitializers","Paginator","CallbackPaginatorController","c","CallbackPaginator_runInitializers","_callback_initializers","_callback_extraInitializers","totalPages","start","end","min","CallbackPaginator_esDecorate","_totalPages_decorators","_changePage_decorators","_callback_decorators","CallbackPaginator","ColorDropdownController","noneColor","ColorDropdown_runInitializers","_noneColor_initializers","smallColorSquares","_noneColor_extraInitializers","_smallColorSquares_initializers","ColorDropdown_esDecorate","_noneColor_decorators","_smallColorSquares_decorators","_smallColorSquares_extraInitializers","ColorDropdown","MessageListController","filteredItems","filtered_warnings","warnings","filtered_successes","filtered_infos","infos","hasMessages","containerStyling","warning","success","all","MessageList_runInitializers","_warnings_initializers","_warnings_extraInitializers","_infos_initializers","_infos_extraInitializers","_all_initializers","MessageList_esDecorate","_filtered_warnings_decorators","_filtered_successes_decorators","_filtered_infos_decorators","_hasMessages_decorators","_containerStyling_decorators","_warnings_decorators","_infos_decorators","_all_decorators","_all_extraInitializers","MessageListComponent","FileInputRef","scope","FileUploadController","FileUpload_runInitializers","formData","_formData_initializers","_formData_extraInitializers","_success_initializers","failure","_success_extraInitializers","_failure_initializers","disableVector","_failure_extraInitializers","_disableVector_initializers","disableRaster","_disableVector_extraInitializers","_disableRaster_initializers","allFiles","_disableRaster_extraInitializers","_allFiles_initializers","hideTypes","_allFiles_extraInitializers","_hideTypes_initializers","delayedSubmission","_hideTypes_extraInitializers","_delayedSubmission_initializers","secondary","_delayedSubmission_extraInitializers","_secondary_initializers","directUpload","_secondary_extraInitializers","_directUpload_initializers","autoReset","_directUpload_extraInitializers","_autoReset_initializers","file","_autoReset_extraInitializers","_file_initializers","startingFile","_file_extraInitializers","_startingFile_initializers","_startingFile_extraInitializers","_uuid_initializers","percent_loaded","_uuid_extraInitializers","_percent_loaded_initializers","uploading","_percent_loaded_extraInitializers","_uploading_initializers","upload_failed","_uploading_extraInitializers","_upload_failed_initializers","upload_success","_upload_failed_extraInitializers","_upload_success_initializers","dragging_file","_upload_success_extraInitializers","_dragging_file_initializers","onFileSelection","_dragging_file_extraInitializers","_onFileSelection_initializers","disabled","_onFileSelection_extraInitializers","_disabled_initializers","extensions","_disabled_extraInitializers","_extensions_initializers","abort_controller","_extensions_extraInitializers","allowed_extensions","raster_extensions","upload","paste","clipboardData","files","extension","drop","L7","resetState","uploadFile","AbortController","headers","signal","onUploadProgress","progressEvent","loaded","dragEnter","dragLeave","fileTypeDisplay","duplicates","fileAcceptList","fileSize","size","bytes","floor","parseFloat","pow","cancelUpload","abort","FileUpload_esDecorate","_paste_decorators","_drop_decorators","_dragEnter_decorators","_dragLeave_decorators","_fileTypeDisplay_decorators","_fileAcceptList_decorators","_fileSize_decorators","_cancelUpload_decorators","_resetState_decorators","_uploadFile_decorators","_formData_decorators","_success_decorators","_failure_decorators","_disableVector_decorators","_disableRaster_decorators","_allFiles_decorators","_hideTypes_decorators","_delayedSubmission_decorators","_secondary_decorators","_directUpload_decorators","_autoReset_decorators","_file_decorators","_startingFile_decorators","_uuid_decorators","_percent_loaded_decorators","_uploading_decorators","_upload_failed_decorators","_upload_success_decorators","_dragging_file_decorators","_onFileSelection_decorators","_disabled_decorators","_extensions_decorators","FileUpload","SizeController","ups","Size_runInitializers","_ups_initializers","_ups_extraInitializers","_value_initializers","area","_value_extraInitializers","_area_initializers","convertedValue","conversion_ratio","size_label","Size_esDecorate","_convertedValue_decorators","_ups_decorators","_value_decorators","_area_decorators","_area_extraInitializers","Size","MeasurementOption_html_html","Fc","MeasurementOptionController","MeasurementOption_runInitializers","updateMetricOption","MeasurementOption_esDecorate","_updateMetricOption_decorators","MeasurementOption","FontDropdown","TextElementController","TextElement_runInitializers","TextElement_esDecorate","TextElement","MultiSelectionDropdownController","MultiSelectionDropdown_runInitializers","any","_any_initializers","idField","_any_extraInitializers","_idField_initializers","dropdown_config","_idField_extraInitializers","_dropdown_config_initializers","_dropdown_config_extraInitializers","_html_initializers","itemStyling","_html_extraInitializers","_itemStyling_initializers","k","allSelected","selectAll","getItemStyling","MultiSelectionDropdown_esDecorate","_allSelected_decorators","_selectAll_decorators","_getItemStyling_decorators","_any_decorators","_idField_decorators","_dropdown_config_decorators","_html_decorators","_itemStyling_decorators","_itemStyling_extraInitializers","MultiSelectionDropdown","__WEBPACK_DEFAULT_EXPORT__","_adapters_VueMixin__WEBPACK_IMPORTED_MODULE_0__","mobile","_mobile_initializers","screen_xs","_mobile_extraInitializers","_screen_xs_initializers","mobileCheck","_screen_xs_extraInitializers","_utils_utils__WEBPACK_IMPORTED_MODULE_1__","fb","_adapters_VueComponent__WEBPACK_IMPORTED_MODULE_2__","_mobile_decorators","_screen_xs_decorators","_utils_EventDispatcher__WEBPACK_IMPORTED_MODULE_4__","itemsReady","addition_queue","_Collection__WEBPACK_IMPORTED_MODULE_0__","_deferred","_utils_SimplePromise__WEBPACK_IMPORTED_MODULE_2__","yY","defer","setPostData","_services_Services__WEBPACK_IMPORTED_MODULE_3__","subset","new_response","deferred","overrideDeferrer","_items","collectionClass","mdl","items_data","offset","totalCount","objects","meta","extra","request_uuid","softFail","total_count","resource_uri","deferredOverride","promise","enableSync","$scope","mode","enableAdditionSync","syncAdditionScope","registerQuery","bindItemChangeRemoval","disableSync","deregisterQuery","_uuid","_utils_uuid__WEBPACK_IMPORTED_MODULE_1__","onServerAddition","filter_key","filter_value","is_same","buildResourceURI","Collection","setPrototypeOf","getData","isModified","getItemFromURI","resourceUri","getItemFromID","removeItemFromURI","removeItemFromID","pkField","getItemIDs","ids","distinct","moveToFront","unshift","fromIndex","InvalidURI","APIResource","encodedUrl","strict","parsed_parts","part","encodeURIComponent","baseUrl","SimplePromise","setData","softSave","cache_key","cache_value","getCache","setCache","clearCache","cache","isCached","from","delete","SyncSetting","ModelDataAccessor","accessor","getFields","getField","getter","InvalidModelError","EventDispatcher","sync_setting","OVERRIDE","_id_initializers","_id_extraInitializers","_resource_uri_initializers","content_type_id","_resource_uri_extraInitializers","_content_type_id_initializers","fieldType","field_instance_key","_lastData","initialized","cls","field_config_union","field_config","unresolvedPromises","promise_set","fs","PENDING","cleaned","_cleaned","resourceURIFromID","baseURI","other","ux","isNew","oData","nData","is_modified","modifiedFields","isNull","revert","_data","errs","merge","hasErrors","getResourceParams","parseResourceName","save","_successCallback","_errorCallback","parseErrors","visited","depth","resource","res_name","resource_name","found","field_name","propagate","stack","level","m","pop","error_callback","bindToFields","_field","configure","registerModels","models","registerClass","registerModel","deregisterModel","onServerChange","modified_on_server","Field","readOnly","_id_decorators","_resource_uri_decorators","_content_type_id_decorators","_content_type_id_extraInitializers","field_type","field_override_key","setter","link","import_name","post_load","private_key","field_data","_services_Services__WEBPACK_IMPORTED_MODULE_0__","_utils_EventDispatcher__WEBPACK_IMPORTED_MODULE_1__","read_only","setValue","_value","clean","skipValidation","initialValueSetup","initial_value","oldValue","setValueWithoutTrigger","getValue","ForeignField","_Field__WEBPACK_IMPORTED_MODULE_0__","relatedModel","_relatedModel","ForeignKeyField","_ForeignField__WEBPACK_IMPORTED_MODULE_1__","T","data_type","_helpers_ResourceURI__WEBPACK_IMPORTED_MODULE_2__","F","_Model__WEBPACK_IMPORTED_MODULE_0__","ForeignKeyURIField","_ForeignKeyField__WEBPACK_IMPORTED_MODULE_1__","autoSelectCollection","load","collection","_autoSelectCollection","ToManyField","data_to_model","converted_data","ResourceURI","idRegex","regex","_idRegex","RegExp","exec","instantiated_singletons","singleton_classes","factory_classes","class_list","deferred_list","validateNamespace","_adapters_Exceptions__WEBPACK_IMPORTED_MODULE_0__","Y8","bI","names","allClasses","waitOn","_utils_SimplePromise__WEBPACK_IMPORTED_MODULE_1__","singleton","factory","registerObject","WeakRefClass","deref","EventCallback","fnc","calls","call","unwrapped","_lastKey","_listeners","fct","cb","toRemove","cnt","getListener","to_remove","messages","fromRequest","_utils__WEBPACK_IMPORTED_MODULE_0__","removeAll","flatList","containsKeys","openModal","element_id","backdrop","createElement","appendChild","getElementsByTagName","closeModal","lock","getTime","setTimeout","EPromiseStates","_EventDispatcher__WEBPACK_IMPORTED_MODULE_0__","executor","_result","_state","promiseClass","_resolve","_reject","result","res","rej","innerResult","reason","iter","done","poolResults","REJECTED","results","race","FULFILLED","onRejected","finallyCallback","getInnerHeight","getComputedStyle","getPropertyValue","getInnerWidth","eventToFiles","dataTransfer","getAsFile","copyToClipboard","permissions","clipboard","writeText","catch","isEmptyString","getClosestQuarter","fitToArea","height","max_area","sqrt","w","h","wait","time","_SimplePromise__WEBPACK_IMPORTED_MODULE_0__","kebabize","str","letter","processRequestError","_MessageList__WEBPACK_IMPORTED_MODULE_2__","toFixedFloor","digits","shift","toFixedCeil","toFixedCeilStable","roundHalfUp","round","userPrefersDarkMode","matchMedia","matches","isDarkModeSet","mobileScreenSize","xsScreenSize","yieldThread","scheduler","yield","lockScreenOrientation","orientation","screen","lockOrientation","lerp","capitalizeFirstLetter","val","charAt","stop","step","websafe_decode","Uint8Array","fromBase64","async","passkeySupported","PublicKeyCredential","isUserVerifyingPlatformAuthenticatorAvailable","uuid4","crypto","randomUUID","r","random","simpleKey","InjectedService","_injected","injected","Company","address","logo","short_name","short_url","facebook_url","yelp_url","google_url","site_theme","SocketEvent","parseModels","modelSet","modelInstance","parsed_data","model_data","single","SocketEventHandler","event_queue","bindEvents","onSocketOpen","onSocketClose","_connecting","sendEvent","event_data","socket","connect","readyState","WebSocket","OPEN","sendEventData","connected","connecting","sessionAuthSuccess","sessionAuthFailure","disconnect","protocol","host","socket_url","onmessage","onSocketMessage","onclose","onopen","initSocket","JSON","parse","send","stringify","sendQueuedEvents","reconnect","CONNECTING","disconnected","CLOSING","CLOSED","ModelSyncService","queries","change_sync_queue","timeout_wait","notifyModelsOfChange","notifyModelsOfAddition","process_queue","processing_queue","object_id","sendModelChangeSyncEvent","sync_enabled","api_response","sendQueryChangeEvent","$on","search_filters","_models","_queries","CookieManager","enabled","js_cookie","json","put","getObject","putObject","setObject","Http","axios","defaults","xsrfCookieName","xsrfHeaderName","handleRequest","isAxiosError","post","patch","Route","uri_regexp","path_parts","route_parts","Map","parameter","entries","regexp","RouteService","routes","keywordArgumentList","parsePath","keywordArgumentsFromName","getRouteFromName","updateUrlQuery","toISOString","history","pushState","title","NamedRouteService","routeService","url_parts","used_keys","base","has_leftovers","leftover_data","encoded","GTagTracking","gtag","trackAddedProductToCart","product_id","price","quantity","dataLayer","addToDataLayer","trackCheckout","order","ordered_items","gtag_items","product_sku","product_name","unit_price","transaction_id","total_gross","shipping","total_shipping","affiliation","transactionId","transactionType","transactionAffiliation","transactionTotal","transactionShipping","transactionCurrency","transactionProducts","trackEvent","category","action","event_category","event_label","trackPage","trackProductPage","sku","default_price","VibeTracker","vbpxCode","doNotTrack","uk","vibe","price_usd","Analytics","trackers","tracker","Debug","Upload","progress","patchConfig","old_upload_progress","percent","HttpUpload","BasicStorageManager","InstanceStorage","clear","getItem","index","removeItem","setItem","LocalStorage","prefix","storageAvailable","storage","localStorage","sessionStorage","clearExpired","startsWith","formatKey","expiration","ChatState","BaseChatService","max_wait_time","new_message","_new_message","Audio","new_chat","_new_chat","minimized","_minimized","chat_room","_chat_room","setupFile","inOverlayState","upload_percent","in_upload_state","updateChatRoom","customer_name","description","error_list","screen_size","out_of_office","leave_chat","has_waited_too_long","wait_timeout","clearTimeout","chat_lines","chat_events","chat_files","users_typing","leaving_message","attempting_to_close","ok_waiting","offline_message_sent","update_history","chat_event","person_is_typing","closed","display_file","update_chat_room","chat_history","event_history","isSelf","play_sound","new_messages","clear_typing_events","user_identifier","element","played_sounds","update_sounds","play","downloadFile","chat_input","send_typing_event","last_typing_update","_chat_input","compare","chat_opened","opened","close_chat","state_override","DISCONNECTED","LOADING","OFFLINE_MESSAGE_SENT","CHAT_CLOSED","OUT_OF_OFFICE","WAITING_TIMEOUT","customer_service_name","WAITING_FOR_REP","IN_CHAT","COLLECTING_INFO","chat_disabled","ChatService","services_BaseChatService","UserProfileService","user_element","textContent","atob","option","loggedIn","updateSubscriptionPreferences","subscribe","marketing","formatMeasurement","inches","convertSizeToInches","metric","UserAddressService","allow_all","fetchingCountries","statesMap","loadedStatesMap","address_element","addresses","pagination_callback","fetchAddresses","assignUser","assigned_guest","assigned_user","assignGuest","unsetUser","fetch","customer","guest","order_by","_fetch","fetchCountries","countries","setDefaultAddress","billing","statesFor","fetchStates","states","UserProductService","ProcessedFileFolder","folders","CreditTransactionType","CreditActionType","UserInStoreCreditTransaction","_action_initializers","balance_change","_action_extraInitializers","_balance_change_initializers","balance_end","_balance_change_extraInitializers","_balance_end_initializers","balance_start","_balance_end_extraInitializers","_balance_start_initializers","comment","_balance_start_extraInitializers","_comment_initializers","date_created","_comment_extraInitializers","_date_created_initializers","transaction_type","_date_created_extraInitializers","_transaction_type_initializers","_transaction_type_extraInitializers","_action_decorators","_balance_change_decorators","_balance_end_decorators","_balance_start_decorators","_comment_decorators","_date_created_decorators","_transaction_type_decorators","WholesaleAccount","display_name","price_modifier","WholesaleAccount_runInitializers","_name_initializers","_name_extraInitializers","_enabled_initializers","_enabled_extraInitializers","_price_modifier_initializers","icon","_price_modifier_extraInitializers","_icon_initializers","WholesaleAccount_esDecorate","_name_decorators","_enabled_decorators","_price_modifier_decorators","_icon_decorators","_icon_extraInitializers","BUSINESS_SIZE_CHOICES","BUSINESS_SIZE_ITEMS","SINGLE_PERSON","SMALL_BUSINESS","MEDIUM_BUSINESS","LARGE_BUSINESS","BUSINESS_TYPE_CHOICES","BUSINESS_TYPE_CHOICES_ITEMS","BUSINESS_ADVERTISING","BUSINESS_PROMOTIONAL","BUSINESS_APPAREL","BUSINESS_SIGNS","BUSINESS_BROKER","BUSINESS_PRINTER","BUSINESS_GOV_SCHOOL","BUSINESS_RETAIL","BUSINESS_OTHER","REFERRAL_CHOICES","REFERRAL_CHOICES_ITEMS","REFERRAL_ADVERTISING","REFERRAL_TRADE_ASSOCIATION","REFERRAL_EMAIL","REFERRAL_DIRECT_MAIL","REFERRAL_TRADE_SHOW","REFERRAL_STANDARD","REFERRAL_GSA","REFERRAL_OTHER","APPLICATION_STATUS_CHOICES","APPLICATION_STATUS_ITEMS","STATUS_NEW","STATUS_DENIED","STATUS_ACCEPTED","STATUS_PENDING","WholesaleApplication","employees_option_name","choice","employees","business_description_option_name","business_description","referral_option_name","referral","application_status_name","application_status","employees_choices","business_description_choices","referral_choices","application_status_choices","WholesaleApplication_runInitializers","_customer_initializers","_customer_extraInitializers","_address_initializers","_address_extraInitializers","phone_number","_phone_number_initializers","_phone_number_extraInitializers","_employees_initializers","_employees_extraInitializers","_business_description_initializers","_business_description_extraInitializers","_referral_initializers","_referral_extraInitializers","_application_status_initializers","_application_status_extraInitializers","membership_applications","_membership_applications_initializers","N","WholesaleApplication_esDecorate","_customer_decorators","_address_decorators","_phone_number_decorators","_employees_decorators","_business_description_decorators","_referral_decorators","_application_status_decorators","_membership_applications_decorators","_membership_applications_extraInitializers","WholesaleMembership","account","WholesaleMemebership_runInitializers","_account_initializers","account_number","_account_extraInitializers","_account_number_initializers","_account_number_extraInitializers","_expiration_initializers","_expiration_extraInitializers","WholesaleMemebership_esDecorate","_account_decorators","_account_number_decorators","_expiration_decorators","ShippingAccount","ShippingAccount_runInitializers","billing_country","_billing_country_initializers","ShippingAccount_esDecorate","_billing_country_decorators","_billing_country_extraInitializers","ChatItemAbstract","_date","ChatItemAbstract_runInitializers","_customer_name_initializers","_customer_name_extraInitializers","_user_identifier_initializers","is_staff","_user_identifier_extraInitializers","_is_staff_initializers","ChatItemAbstract_esDecorate","_customer_name_decorators","_user_identifier_decorators","_is_staff_decorators","_is_staff_extraInitializers","ChatLine","ChatLine_runInitializers","_message_initializers","edited","_message_extraInitializers","_edited_initializers","removed","_edited_extraInitializers","_removed_initializers","order_input","_removed_extraInitializers","_order_input_initializers","ChatLine_esDecorate","_message_decorators","_edited_decorators","_removed_decorators","_order_input_decorators","_order_input_extraInitializers","ChatEvent","event_type","ChatEvent_runInitializers","_event_type_initializers","_event_type_extraInitializers","_event_data_initializers","event_name","_event_data_extraInitializers","_event_name_initializers","link_display","_event_name_extraInitializers","_link_display_initializers","event_slug","_link_display_extraInitializers","_event_slug_initializers","display_message","_event_slug_extraInitializers","_display_message_initializers","ChatEvent_esDecorate","_event_type_decorators","_event_data_decorators","_event_name_decorators","_link_display_decorators","_event_slug_decorators","_display_message_decorators","_display_message_extraInitializers","ChatRoom","ChatRoom_runInitializers","room_id","_room_id_initializers","_room_id_extraInitializers","_description_initializers","_description_extraInitializers","date_closed","_date_closed_initializers","owner","_date_closed_extraInitializers","_owner_initializers","_owner_extraInitializers","_closed_initializers","_closed_extraInitializers","_opened_initializers","online","_opened_extraInitializers","_online_initializers","resolved","_online_extraInitializers","_resolved_initializers","_resolved_extraInitializers","customer_service_image","_customer_service_image_initializers","_customer_service_image_extraInitializers","_customer_service_name_initializers","_customer_service_name_extraInitializers","ChatRoom_esDecorate","_room_id_decorators","_description_decorators","_date_closed_decorators","_owner_decorators","_closed_decorators","_opened_decorators","_online_decorators","_resolved_decorators","_customer_service_image_decorators","_customer_service_name_decorators","ChatFile","download_url","ChatFile_runInitializers","preview","_preview_initializers","_preview_extraInitializers","ChatFile_esDecorate","_preview_decorators","RECONNECTING","ChatController","Chat_runInitializers","_chat_input_initializers","chat","_chat_input_extraInitializers","_chat_initializers","company","_chat_extraInitializers","_company_initializers","_company_extraInitializers","_username_initializers","_username_extraInitializers","file_to_form_data","_file_to_form_data_initializers","_file_to_form_data_extraInitializers","scroll_area","scrollHeight","scrollTop","yV","canGroup","minutes_between","abs","Chat_esDecorate","_canGroup_decorators","_isSelf_decorators","_chat_input_decorators","_chat_decorators","_company_decorators","_username_decorators","_file_to_form_data_decorators","ChatComponent","ChatBubbleController","$cookies","chat_service","ChatBubble_runInitializers","chat_open","_chat_open_initializers","_chat_open_extraInitializers","querySelectorAll","toggleChat","ChatBubble_esDecorate","_toggleChat_decorators","_chat_open_decorators","ChatBubble","ChatHeader_html_html","ChatHeaderController","ChatHeader_runInitializers","ChatHeader_esDecorate","ChatHeader","ChatInputArea_html_html","ChatInputAreaController","ChatInputArea_runInitializers","ChatInputArea_esDecorate","ChatInputArea","CarouselController","slider","onScroll","_maxLeft","maxLeft","_maxRight","maxRight","_slider","sliderOffset","innerWidth","scrollSliderLeft","scrollLeft","offsetWidth","scrollSliderRight","scrollWidth","clientWidth","CarouselSlider","carousel_controller","CarouselSlider_runInitializers","_carousel_controller_initializers","CarouselSlider_esDecorate","_carousel_controller_decorators","_carousel_controller_extraInitializers","RotatingBannerApp","total_items","swap_timeout","swapAutomation","stopAutomation","RotatingBanner_runInitializers","_index_initializers","RotatingBanner_esDecorate","_stopAutomation_decorators","_swapAutomation_decorators","_index_decorators","_index_extraInitializers","removeAlert","BackendAlertApp_runInitializers","BackendAlertApp_esDecorate","_removeAlert_decorators","BackendAlerts_BackendAlertApp","ScrollToBinding_initialized","DropdownBinding_initialized","TooltipBinding_initialized","PasswordToggleBinding_initialized","ElementInViewBinding_initialized","ToggleChatBinding_initialized","ClickRotate_initialized","Integration","setupSentry","setupGlobalModules","setupModels","setupServices","configureServices","setupApps","yl","ModalAttrBinding","scrollIntoView","block","ScrollToBinding","outside","stopImmediatePropagation","TouchEvent","DropdownBinding","TooltipBinding","on_click","PasswordToggleBinding","IntersectionObserver","entry","isIntersecting","rootMargin","threshold","ElementInViewBinding","ToggleChatBinding","buttons","clicking","button_id","click","ClickRotate","DropdownApp","active","DropdownApp_runInitializers","_active_initializers","DropdownApp_esDecorate","_active_decorators","_active_extraInitializers","span","color","object","displayKey","APIResponseFormatter","header","skip","hasBody","formatters_ModelFormatter","selected_categories","categories","selected_material_filters","material_filters","category_list","filters_list","toggleAdvancedFilters","PageSearch_runInitializers","_categories_initializers","_categories_extraInitializers","_material_filters_initializers","_material_filters_extraInitializers","show_filters","_show_filters_initializers","PageSearch_esDecorate","_toggleAdvancedFilters_decorators","_categories_decorators","_material_filters_decorators","_show_filters_decorators","_show_filters_extraInitializers","apps_PageSearch","StorefrontRouteList","SubscribeApp","SubscribeApp_runInitializers","SubscribeApp_esDecorate","_subscribe_decorators","setSelection","selection","ProductTabGroup_runInitializers","_selection_initializers","ProductTabGroup_esDecorate","_setSelection_decorators","_selection_decorators","_selection_extraInitializers","apps_ProductTabGroup","env","NODE_ENV","CoreIntegration","linked","unobserve","DelayedSrcObserver","KJ","C","init_registerModels","cookieEnabled","services_NamedRouteService","init_registerServices","services_UserProductService","services_init_registerServices","components_init","box","top","documentElement","setProperty","polyfillHeaderAnchor","environment","sdk","Ts","dsn","release","integrations","browserTracingIntegration","dp","tracesSampleRate","pintrist_tracking_id"],"sourceRoot":""}