PageSourceSearch

https://www.geocaching.com/account/app/dist/trackable-orders.064c3dff1fed93c57fb7.js

js geocaching.com collected 2026-09-24 08:31:17 UTC 45,821 bytes, 1 lines download raw bytes

1(globalThis.webpackChunkui_js_core||=[]).push([[7774,9070],{52346(e,t,i){"use strict";i.d(t,["U",0,{DETAILS:"orderDetails",EDIT:"editOrder",HISTORY:"orders",INVOICE:"invoice",NEW:"new",REORDER:"reorder"}])},38741(e,t,i){"use strict";var n=i(35804);const o=i.n(n)().channel("ordersChannel");i.d(t,["H",0,o])},48812(e,t,i){"use strict";i.d(t,{OrderLayoutView:()=>Lt});i(76449),i(81411),i(64359);var n=i(74692),o=i.n(n),s=i(78603),r=i.n(s),a=i(72446),l=i.n(a),d=i(36947),c=i(38741),h=i(52346),u=i(79297),p=i(21391),m=i.n(p),g=i(77330);const f=r().View.extend({template:"#existingImageTemplate",ui:{btnRemove:"button"},events:{"click @ui.btnRemove":"onRemove"},initialize:function(e){this.hideRemoveButton=e.hideRemoveButton},onRemove:function(){this.model.set("remove",!0)},serializeData:function(){return{id:this.model.id,name:this.model.get("name"),thumb:this.model.get("thumb"),type:this.model.get("type"),hideRemoveButton:this.hideRemoveButton}}}),v=r().CollectionView.extend({childView:f,childViewOptions:function(){return{hideRemoveButton:this.hideRemoveButton}},initialize:function(e){this.hideRemoveButton=e.hideRemoveButton||!1}});var w=i(35804),y=i.n(w);const b=new(m().Model),x=y().channel("orders"),A=r().View.extend({el:"#fileUploadDesign",template:!1,ui:{fileUpload:".file-upload",errorWrapper:".file-error"},filePreviewTemplate:null,model:b,modelEvents:{"change:isWaiting":"onModelWaiting"},initialize:function(e){if(this.options=u.default.extend({},this.options,e),this.existingImages=new(m().Collection),this.options.designs){var t=u.default.pluck(this.options.designs,"thumbImage");u.default.each(t,(function(e){e={id:e.id,name:e.filename,thumb:e.url,type:3};this.existingImages.push(e)}),this)}this.model.set({hasPhoto:!1,isMax:!1,waiting:!1,type:3});var i="#"+this.el.id+" .existing-images",n=2-this.existingImages.length;this.designUpload=new g.A({el:this.el,maxFiles:n,filePreviewAreaEl:".design-preview"}),this.existingImagesView=new v({el:i,collection:this.existingImages,hideRemoveButton:this.options.hideRemoveButton}),this.listenTo(this.designUpload.model,"change:files change:hasError",this.filesChanged),this.listenTo(this.designUpload.model,"remove:files",this.filesRemoved),this.listenTo(this.existingImagesView.collection,"change:remove",this.existingFileRemoved),this.existingImagesView.render()},onAttach:function(){0==this.existingImages.length&&this.ui.fileUpload.show()},existingFileRemoved:function(e){this.designUpload.options.maxFiles<2&&(this.designUpload.options.maxFiles=this.designUpload.options.maxFiles+1),x.trigger("removeExisting",e),this.existingImages.remove(e),this.existingImagesView.render(),this.ui.fileUpload.show()},onModelWaiting:function(){this.model.get("isWaiting")?this.designUpload.disable():this.designUpload.enable(),this.render()},filesChanged:function(){this.designUpload.model.get("hasError")?this.displayFileError(this.designUpload.model.get("errorType")):(this.displayFileError(""),this.model.set("images",this.designUpload.getQueuedFiles()),x.trigger("fileAdded",this.model)),this.render()},filesRemoved:function(){this.model.set("images",this.designUpload.getQueuedFiles()),x.trigger("fileRemoved",this.model)},displayFileError:function(e){var t="";switch(e){case"type":t=App.Localizations.get("attachmentInvalidFileType");break;case"size":t=App.Localizations.get("attachmentFileTooLarge")}this.ui.errorWrapper.html(t)}}),E=new(m().Model),I=y().channel("orders"),C=r().View.extend({el:"#fileUploadIconSmall",template:!1,ui:{fileUpload:".file-upload",errorWrapper:".file-error"},model:E,modelEvents:{"change:isWaiting":"onModelWaiting"},initialize:function(e){if(this.options=u.default.extend({},this.options,e),this.existingImages=new(m().Collection),this.options.designs){var t=u.default.pluck(this.options.designs,"originalImage");u.default.each(t,(function(e){e={id:e.id,name:e.filename,thumb:e.url,type:2};this.existingImages.push(e)}),this)}this.model.set({hasPhoto:!1,isMax:!1,waiting:!1,type:2});var i="#"+this.el.id+" .existing-images";this.designUpload=new g.A({el:this.el,filePreviewAreaEl:".icon-sm-preview"}),this.existingImagesView=new v({el:i,collection:this.existingImages}),this.listenTo(this.designUpload.model,"change:files change:hasError",this.filesChanged),this.listenTo(this.designUpload.model,"remove:files",this.filesRemoved),this.listenTo(this.existingImagesView.collection,"change:remove",this.existingFileRemoved),this.existingImagesView.render()},onAttach:function(){0==this.existingImages.length&&this.ui.fileUpload.show()},existingFileRemoved:function(e){I.trigger("removeExisting",e),this.existingImages.remove(e),this.existingImagesView.render(),this.ui.fileUpload.show()},onModelWaiting:function(){this.model.get("isWaiting")?this.designUpload.disable():this.designUpload.enable(),this.render()},filesChanged:function(){this.designUpload.model.get("hasError")?this.displayFileError(this.designUpload.model.get("errorType")):(this.displayFileError(""),this.model.set("images",this.designUpload.getQueuedFiles()),I.trigger("fileAdded",this.model)),this.render()},filesRemoved:function(){this.model.set("images",this.designUpload.getQueuedFiles()),I.trigger("fileRemoved",this.model)},displayFileError:function(e){var t="";switch(e){case"type":t=App.Localizations.get("attachmentInvalidFileType");break;case"size":t=App.Localizations.get("attachmentFileTooLarge")}this.ui.errorWrapper.html(t)}
1}),O=new(m().Model),S=y().channel("orders"),_=r().View.extend({el:"#fileUploadIconLarge",template:!1,ui:{fileUpload:".file-upload",errorWrapper:".file-error"},model:O,modelEvents:{"change:isWaiting":"onModelWaiting"},initialize:function(e){if(this.options=u.default.extend({},this.options,e),this.existingImages=new(m().Collection),this.options.designs){var t=u.default.pluck(this.options.designs,"originalImage");u.default.each(t,(function(e){e={id:e.id,name:e.filename,thumb:e.url,type:1};this.existingImages.push(e)}),this)}this.model.set({hasPhoto:!1,isMax:!1,waiting:!1,type:1});var i="#"+this.el.id+" .existing-images";this.designUpload=new g.A({el:this.el,filePreviewAreaEl:".icon-lg-preview"}),this.existingImagesView=new v({el:i,collection:this.existingImages}),this.listenTo(this.designUpload.model,"change:files change:hasError",this.filesChanged),this.listenTo(this.designUpload.model,"remove:files",this.filesRemoved),this.listenTo(this.existingImagesView.collection,"change:remove",this.existingFileRemoved),this.existingImagesView.render()},onAttach:function(){0==this.existingImages.length&&this.ui.fileUpload.show()},existingFileRemoved:function(e){S.trigger("removeExisting",e),this.existingImages.remove(e),this.existingImagesView.render(),this.ui.fileUpload.show()},onModelWaiting:function(){this.model.get("isWaiting")?this.designUpload.disable():this.designUpload.enable(),this.render()},filesChanged:function(){this.designUpload.model.get("hasError")?this.displayFileError(this.designUpload.model.get("errorType")):(this.displayFileError(""),this.model.set("images",this.designUpload.getQueuedFiles()),S.trigger("fileAdded",this.model)),this.render()},filesRemoved:function(){this.model.set("images",this.designUpload.getQueuedFiles()),S.trigger("fileRemoved",this.model)},displayFileError:function(e){var t="";switch(e){case"type":t=App.Localizations.get("attachmentInvalidFileType");break;case"size":t=App.Localizations.get("attachmentFileTooLarge")}this.ui.errorWrapper.html(t)}});var R=i(535),M=i(25055);const k=r().View.extend({el:".file-upload-wrapper",regions:{uploadDesigns:"#designUpload",iconUploadSmall:"#iconUploadSmall",iconUploadLarge:"#iconUploadLarge",defaultIcon:"#defaultIcon"},initialize:function(e){if(this.options=u.default.extend({},this.options,e),this.getRegion("uploadDesigns").show(new A({designs:this.options.designs,hideRemoveButton:this.options.isReorder})),this.options.icons.length>0){var t=u.default.findWhere(this.options.icons,{resourceType:2}),i=u.default.findWhere(this.options.icons,{resourceType:1});this.getRegion("iconUploadSmall").show(new C({designs:[t]})),this.getRegion("iconUploadLarge").show(new _({designs:[i]}))}}}),T=r().View.extend({el:".file-upload-wrapper",regions:{iconUploadSmall:"#iconUploadSmall",iconUploadLarge:"#iconUploadLarge"},initialize:function(e){this.options=u.default.extend({},this.options,e),o()("#iconUploadSmall").length>0&&this.getRegion("iconUploadSmall").show(new R.A),o()("#iconUploadLarge").length>0&&this.getRegion("iconUploadLarge").show(new M.A)}});var U=i(59777);const z=r().View.extend({expandTerms(e){e.preventDefault(),o()("#ex-policy").prop("checked",!0),o()("html,body").animate({scrollTop:o()("#guidelines").offset().top},"slow")},toggleErrorDisplay:function(e,t){if(t)e.removeClass("error"),e.next().text("");else{const t=App.Localizations.get("trackable:orders").errors[e.attr("id")];e.addClass("error"),e.next().text(t)}},validateField:function(e){const t=e.target.id,i=this.ui[e.target.id],n=l().OrderValidator[t](i.val().trim());this.toggleErrorDisplay(i,n)}},{_events:()=>({"focusout @ui.codePrefix":"validateField","focusout @ui.activationCode":"validateField","click @ui.termsLink":"expandTerms"}),_ui:()=>({activationCode:"#activationCode",contactName:"#contactName",codePrefix:"#codePrefix",codePrefixInfo:"#code-prefix-info",email:"#email",name:"#name",termsLink:".termsLink",attachment_1:"#attachment_1",serviceError:"#serviceError",wrapper:".order-form-wrapper"})}),L="#D34627";i(1426);const V=y().channel("orders"),D=z.extend({template:"#order-edit-template",tagName:"div",ui:{attachment_3:"#attachment_3",...z._ui()},regions:{attachments:".file-upload-wrapper",submit:"#submit-button-region"},events:{"focusout @ui.name":"validateField",...z._events()},childViewEvents:{"click:resubmit":"onSubmitEditOrder"},initialize:function(e){this.options=u.default.extend({},this.options,e),this.bindUIElements(),this.listenTo(V,"fileAdded",this.onFileChanged),this.listenTo(V,"fileRemoved",this.onFileRemoved),this.listenTo(V,"removeExisting",this.onExistingFileRemoved),this.attachmentsToDelete=[],this.attachmentsModel={}},onRender:function(){this.getRegion("submit")?.show(new U.A({resubmit:!0})),this.ui.codePrefixInfo?.qtip({content:App.Localizations.get("codePrefixInfo"),style:"qtip-dark qtip-shadow",show:"click",hide:"unfocus",position:{at:"top center",my:"bottom left"}})},onAttach:function(){const e=this.model.get("items"),t=e[0].hasOwnProperty("reorderedFromId");this.attachmentsView=new k({designs:e[0].designs,icons:e[0].icons,isReorder:t})},onExistingFileRemoved:function(e){this.attachmentsToDelete.push(e.attributes)},onFileChanged:function(e){const t=e.get("type");this.attachmentsModel[t]=e.get("images"),o()("#attachmentError").text(""),"3"===t?this.ui.attachment_3.html(""):this.ui.attachment_1.html("")},onFileRemoved:function(e){const t=e.get("images"),i=e.get("type");this.attachmentsModel[i]&&(delete this.attachmentsModel[i],o()("#attachmentError").text("")),t&&t.length>0&&(this.attachmentsModel[e.get("type")]=e.get("images"))},serializeData:function(){const e=this.model.get("items"),t=e[0].hasOwnProperty("reorderedFromId");return{contactName:this.model.get("contactName"),email:this.model.get("email"),items:e,isReorder:t}},onSubmitEditOrder(e){const t=this.ui.activationCode.val().trim(),i={name:this.ui.name.val(),codePrefix:this.ui.codePrefix.val(),activationCode:""===t?null:t};let n=l().OrderValidator.validateEditOrder(i);const s=this.model.get("items"),r=l().OrderValidator.validateEditOrderAttachments(this.attachmentsModel,s[
10],this.attachmentsToDelete);this.clearErrors(),0===n.length&&0===r.length?this.model.updateResourcesFromOrderEdit(this.attachmentsModel,this.attachmentsToDelete).then(function(e){return this.model.editOrder(i)}.bind(this)).done(function(e){window.location="/account/orders?resubmit_success=true"}.bind(this)).fail(function(t){e.set("isWaiting",!1),this.showOrderServiceError(App.Localizations.get("trackable:orders").errors.serviceUpdateOrderError)}.bind(this)):(e.set("isWaiting",!1),r.length>0&&(n=u.default.union(n,r)),this.showValidationErrors(n),o()("html, body").animate({scrollTop:this.ui.wrapper.offset().top},0))},clearErrors:function(){u.default.each(this.ui,function(e){e.removeClass("error")}.bind(this)),this.ui.attachment_1.html(""),this.ui.attachment_3.html("")},showValidationErrors:function(e){const t=this;this.validationErrors=e,u.default.each(e,(function(e){e.name.indexOf("attachment")>-1?t.ui[e.name].text(e.message).css({color:L,"font-size":"12px"}):(t.ui[e.name].addClass("error"),t.ui[e.name].addClass("disabled"),t.ui[e.name].siblings(".field-validation-error").text(e.message))}))},showOrderServiceError:function(e){this.ui.serviceError.text(e).css({color:L,"font-size":"12px"})}});var F=i(92334),P=i.n(F);const B=r().View.extend({template:P().compile("<div>{{{errorText}}}</div>"),tagName:"div",templateContext(){return{errorText:this.options.errorText??"Something went wrong."}}}),H=r().View.extend({template:P().compile('<div class="loading"></div>'),tagName:"div"});var N=i(59327),W=i.n(N),Q=i(45183);const j=(0,Q.tv)({slots:{base:"bg-white text-center md:border md:border-solid md:border-gray-200 md:rounded md:my-6 md:p-6",heading:"mt-6 mb-5",getStartedText:"mt-0 mb-6"}}),q=r().View.extend(window.disableOrders?{}:{template:W(),tagName:"section",className:`empty-history-panel ${j().base()}`,templateContext(){const e=this?.options?.i18n||{};return{locals:{GetStartedSubmitOrder:e.getStartedSubmitOrder??"Submit a new trackable code order to get started.",NoCodeOrders:e.noCodeOrders??"You haven't ordered any codes yet.",SubmitNewOrder:e.submitNewOrder??"Submit a new trackable code order to get started."},styles:{gcButtonPrimaryStyles:(0,d.P$)(),heading:j().heading(),getStartedText:j().getStartedText()}}}});var $=i(73149);const K=r().View.extend({template:"#order-item-template",tagName:"section",className:"order-history order-item",ui:{reorder:".btn-reorder",resubmit:".btn-resubmit",payment:".btn-payment",invoice:".btn-invoice",viewDetails:".view-details"},events:{"click @ui.reorder":"reorder","click @ui.resubmit":"resubmit","click @ui.payment":"payment","click @ui.invoice":"invoice","click @ui.viewDetails":"viewDetails"},initialize:function(e){const t={...this.options,...e};t.hasOwnProperty("template")&&(this.template=t.template)},serializeData:function(){var e=this.model.get("items"),t=0===e[0].quantity;return{id:this.model.get("id"),username:this.model.get("username"),fullname:this.model.get("firstAndLastName"),country:this.model.get("country.name"),billingAddress:this.model.get("billingAddress"),email:this.model.get("email"),isCustomIconOrder:t,isLegacy:this.model.get("imported"),isOrderTransfer:this.model.get("accountId")!==App.Settings.get("user:info").accountId,items:e,orderDate:this.model.get("orderDate"),status:this.model.get("status"),transactionId:this.model.get("transactionId"),merchantTransactionid:this.model.get("merchantTransactionid"),paymentType:this.model.get("paymentType"),maskedCard:this.model.get("maskedCard"),total:this.model.get("total")}},templateContext:()=>({styles:{actionBtnAsLink:`${(0,$.e)().base({isButton:!0})} self-start`,orderItemDetailsLabel:"block text-xs text-gray-500 mb-1",orderItemDetailsDeniedLabel:"rounded-[2px] bg-red-100 text-red-600 py-0.5 px-2 text-base/5 inline-block"}}),reorder:function(){this.triggerMethod("reorder:selected",this.model)},resubmit:function(){this.triggerMethod("edit:selected",this.model)},payment:function(){window.location=serverParameters["app:options"].paymentUrl+"order/payment/"+this.model.id},invoice:function(){this.triggerMethod("invoice:selected",this.model.id)},viewDetails:function(){this.triggerMethod("order:selected",this.model)}}),G=r().CollectionView.extend({childView:K,childViewTriggers:{"edit:selected":"edit:selected","invoice:selected":"invoice:selected","order:selected":"order:selected","reorder:selected":"reorder:selected"},collectionEvents:{"orders:loading":"handleCollectionLoadingItems","orders:stop-loading":"handleCollectionStopLoadingItems"},initialize:function(e){o()(window).on("scroll",u.default.debounce(this.handleWindowScroll.bind(this),300))},handleCollectionLoadingItems:function(){this.triggerMethod("loader:show")},handleCollectionStopLoadingItems:function(){this.triggerMethod("loader:hide")},handleWindowScroll:function(){const e=o()(document).height();
1(e-(o()(window).height()+o()(window).scrollTop()))/e<=.03&&this.lazyLoad()},lazyLoad:function(){this.collection.load()},reset:function(){this.collection.reset()}});i(5579);var Y=i(55317),J=i.n(Y);const X=(0,Q.tv)({slots:{base:"bg-white rounded border border-solid max-w-[290px] has-[input:focus]:shadow-outline mt-6",inputWrapper:"w-full border-solid border-0 border-r",label:"sr-only",input:"rounded border-none m-0 leading-5 focus:border-none focus:shadow-none placeholder:text-gray-500",btn:"bg-transparent border-none rounded p-2 cursor-pointer",icon:"size-5"},compoundSlots:[{slots:["base","inputWrapper"],class:["border-gray-200"]},{slots:["base","btn"],class:["flex","items-center"]}]}),Z=r().View.extend({template:J(),className:X().base(),ui:{orderSearchButton:"#order-search-button",orderSearchQuery:"#order-search-query"},events:{"click @ui.orderSearchButton":"_handleOrderSearchButtonClick","keyup @ui.orderSearchQuery":"_handleOrderSearchQueryKeyup"},query:null,templateContext(){return{locals:{placeholder:this.localization.misc.searchPlaceholder,search:this.localization.misc.search},styles:{inputWrapper:X().inputWrapper(),label:X().label(),searchInput:X().input(),searchBtn:X().btn(),searchIcon:X().icon()}}},initialize(e){this.localization=e.localization},_handleOrderSearchButtonClick(e){e.preventDefault();const t=o()(this.ui.orderSearchQuery).val().trim();this.triggerMethod("order:search",t)},_handleOrderSearchQueryKeyup(e){const t=e.keyCode||e.charCode,i=o()(this.ui.orderSearchQuery).val().trim();13===t&&this.triggerMethod("order:search",i),8!==t&&46!==t||""===i&&this.triggerMethod("order:search",i)}});i(17894);var ee=i(52528);const te=function eq(e,t){return e===t||e!=e&&t!=t};var ie=Object.prototype.hasOwnProperty;const ne=function assignValue(e,t,i){var n=e[t];ie.call(e,t)&&te(n,i)&&(void 0!==i||t in e)||(0,ee.A)(e,t,i)};const oe=function copyObject(e,t,i,n){var o=!i;i||(i={});for(var s=-1,r=t.length;++s<r;){var a=t[s],l=n?n(i[a],e[a],a,i,e):void 0;void 0===l&&(l=e[a]),o?(0,ee.A)(i,a,l):ne(i,a,l)}return i};var se=i(24326),re=i(38446),ae=i(25353),le=i(23149);const de=function isIterateeCall(e,t,i){if(!(0,le.A)(i))return!1;var n=typeof t;return!!("number"==n?(0,re.A)(i)&&(0,ae.A)(t,i.length):"string"==n&&t in i)&&te(i[t],e)};const ce=function createAssigner(e){return(0,se.A)((function(t,i){var n=-1,o=i.length,s=o>1?i[o-1]:void 0,r=o>2?i[2]:void 0;for(s=e.length>3&&"function"==typeof s?(o--,s):void 0,r&&de(i[0],i[1],r)&&(s=o<3?void 0:s,o=1),t=Object(t);++n<o;){var a=i[n];a&&e(t,a,n,s)}return t}))};const he=function baseTimes(e,t){for(var i=-1,n=Array(e);++i<e;)n[i]=t(i);return n};var ue=i(25175),pe=i(92049),me=i(41200),ge=i(42871),fe=Object.prototype.hasOwnProperty;const ve=function arrayLikeKeys(e,t){var i=(0,pe.A)(e),n=!i&&(0,ue.A)(e),o=!i&&!n&&(0,me.A)(e),s=!i&&!n&&!o&&(0,ge.A)(e),r=i||n||o||s,a=r?he(e.length,String):[],l=a.length;for(var d in e)!t&&!fe.call(e,d)||r&&("length"==d||o&&("offset"==d||"parent"==d)||s&&("buffer"==d||"byteLength"==d||"byteOffset"==d)||(0,ae.A)(d,l))||a.push(d);return a};var we=i(97271);const ye=function nativeKeysIn(e){var t=[];if(null!=e)for(var i in Object(e))t.push(i);return t};var be=Object.prototype.hasOwnProperty;const xe=function baseKeysIn(e){if(!(0,le.A)(e))return ye(e);var t=(0,we.A)(e),i=[];for(var n in e)("constructor"!=n||!t&&be.call(e,n))&&i.push(n);return i};const Ae=function keysIn(e){return(0,re.A)(e)?ve(e,!0):xe(e)};const Ee=ce((function(e,t){oe(t,Ae(t),e)}));var Ie=i(72641);const Ce=function createBaseFor(e){return function(t,i,n){for(var o=-1,s=Object(t),r=n(t),a=r.length;a--;){var l=r[e?a:++o];if(!1===i(s[l],l,s))break}return t}}();var Oe=i(62601);const Se=function keys(e){return(0,re.A)(e)?ve(e):(0,Oe.A)(e)};const _e=function createBaseEach(e,t){return function(i,n){if(null==i)return i;if(!(0,re.A)(i))return e(i,n);for(var o=i.length,s=t?o:-1,r=Object(i);(t?s--:++s<o)&&!1!==n(r[s],s,r););return i}}((function baseForOwn(e,t){return e&&Ce(e,t,Se)}));var Re=i(29008);const Me=function castFunction(e){return"function"==typeof e?e:Re.A};const ke=function forEach(e,t){return((0,pe.A)(e)?Ie.A:_e)(e,Me(t))};var Te=i(7476);const Ue=(0,i(28562).A)(Object,"create");const ze=function hashClear(){this.__data__=Ue?Ue(null):{},this.size=0};const Le=function hashDelete(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t};var Ve=Object.prototype.hasOwnProperty;const De=function hashGet(e){var t=this.__data__;if(Ue){var i=t[e];return"__lodash_hash_undefined__"===i?void 0:i}return Ve.call(t,e)?t[e]:void 0};var Fe=Object.prototype.hasOwnProperty;const Pe=function hashHas(e){var t=this.__data__;return Ue?void 0!==t[e]:Fe.call(t,e)};const Be=function hashSet(e,t){var i=this.__data__;return this.size+=this.has(e)?0:1,i[e]=Ue&&void 0===t?"__lodash_hash_undefined__":t,this};function Hash(e){var t=-1,i=null==e?0:e.length;for(this.clear();++t<i;){var n=e[t];this.set(n[0],n[1])}}Hash.prototype.clear=ze,Hash.prototype.delete=Le,Hash.prototype.get=De,Hash.prototype.has=Pe,Hash.prototype.set=Be;const He=Hash;const Ne=function listCacheClear(){this.__data__=[],this.size=0};const We=function assocIndexOf(e,t){for(var i=e.length;i--;)if(te(e[i][0],t))return i;return-1};var Qe=Array.prototype.splice;const je=function listCacheDelete(e){var t=this.__data__,i=We(t,e);return!(i<0)&&(i==t.length-1?t.pop():Qe.call(t,i,1),--this.size,!0)};const qe=function listCacheGet(e){var t=this.__data__,i=We(t,e);return i<0?void 0:t[i][1]};const $e=function listCacheHas(e){return We(this.__data__,e)>-1};const Ke=function listCacheSet(e,t){var i=this.__data__,n=We(i,e);return n<0?(++this.size,i.push([e,t])):i[n][1]=t,this};function ListCache(e){var t=-1,i=null==e?0:e.length;for(this.clear();++t<i;){var n=e[t];this.set(n[0],n[1])}}ListCache.prototype.clear=Ne,ListCache.prototype.delete=je,ListCache.prototype.get=qe,ListCache.prototype.has=$e,ListCache.prototype.set=Ke;const Ge=ListCache;var Ye=i(68335);const Je=function mapCacheClear(){this.size=0,this.__data__={hash:new He,map:new(Ye.A||Ge),string:new He}};const Xe=function isKeyable(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e};const Ze=function getMapData(e,t){var i=e.__data__;return Xe(t)?i["string"==typeof t?"string":"hash"]:i.map};const et=function mapCacheDelete(e){var t=Ze(this,e).delete(e);return this.size-=t?1:0,t};const tt=function mapCacheGet(e){return Ze(this,e).get(e)};const it=function mapCacheHas(e){return Ze(this,e).has(e)};const nt=function mapCacheSet(e,t){var i=Ze(this,e),n=i.size;return i.set(e,t),this.size+=i.size==n?0:1,this};function MapCache(e){var t=-1,i=null==e?0:e.length;for(this.clear();++t<i;){var n=e[t];this.set(n[0],n[1])}}MapCache.prototype.clear=Je,MapCache.prototype.delete=et,MapCache.prototype.get=tt,MapCache.prototype.has=it,MapCache.prototype.set=nt;const ot=MapCache;
1const st=function setCacheAdd(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this};const rt=function setCacheHas(e){return this.__data__.has(e)};function SetCache(e){var t=-1,i=null==e?0:e.length;for(this.__data__=new ot;++t<i;)this.add(e[t])}SetCache.prototype.add=SetCache.prototype.push=st,SetCache.prototype.has=rt;const at=SetCache;var lt=i(75485);const dt=function arrayIncludesWith(e,t,i){for(var n=-1,o=null==e?0:e.length;++n<o;)if(i(t,e[n]))return!0;return!1};const ct=function cacheHas(e,t){return e.has(t)};var ht=i(39857),ut=i(42302);const pt=function setToArray(e){var t=-1,i=Array(e.size);return e.forEach((function(e){i[++t]=e})),i};const mt=ht.A&&1/pt(new ht.A([,-0]))[1]==1/0?function(e){return new ht.A(e)}:ut.A;const gt=function baseUniq(e,t,i){var n=-1,o=lt.A,s=e.length,r=!0,a=[],l=a;if(i)r=!1,o=dt;else if(s>=200){var d=t?null:mt(e);if(d)return pt(d);r=!1,o=ct,l=new at}else l=t?[]:a;e:for(;++n<s;){var c=e[n],h=t?t(c):c;if(c=i||0!==c?c:0,r&&h==h){for(var u=l.length;u--;)if(l[u]===h)continue e;t&&l.push(h),a.push(c)}else o(l,h,i)||(l!==a&&l.push(h),a.push(c))}return a};var ft=i(53098);const vt=function isArrayLikeObject(e){return(0,ft.A)(e)&&(0,re.A)(e)};const wt=(0,se.A)((function(e){return gt((0,Te.A)(e,1,vt,!0))}));var yt=i(74522);const bt=y().channel("orders"),xt=z.extend({template:"#order-reorder-template",hasAndIsAllowedIcons:!1,invalidQuantityChars:/[^0-9]/gi,reorderData:null,submitButtonState:null,templateContext:()=>({styles:{gcPrimaryBtn:`${(0,d.P$)()}`,reorderItemDetailsLabel:`${(0,$.D)().inputLabel()}`,infoToolTip:"border-none bg-transparent cursor-pointer flex items-center"}}),ui:{acceptTrademarkLicense:"#accept-trademark-license",contactName:"#contactName",detailsPanel:".details-panel",email:"#email",iconDefault:"#iconDefault",iconRadio:"#iconCustom",onlyAddIcon:"#onlyAddIcon",onlyAddIconInfo:"#only-add-icon-info",reorderQuantity:"#reorderQuantity",trademarkLicense:"#trackable-trademark-license",...z._ui()},regions:{submit:"#submit-button-region"},events:{"click @ui.acceptTrademarkLicense":"acceptTrademarkLicense","click @ui.onlyAddIcon":"onlyAddIconToggle","focusout @ui.reorderQuantity":"validateField","keyup @ui.reorderQuantity":"checkQuantityChar",...z._events()},childViewEvents:{"click:showTrademarkLicense":"showTrademarkLicense"},initialize(e){this.options=Ee({},this.options,e),this.listenTo(bt,"fileAdded",this.onFileChanged),this.listenTo(bt,"fileRemoved",this.onFileRemoved),this.attachmentsModel={}},onRender(){this.getRegion("submit").show(new U.A),this.ui.codePrefixInfo.qtip({content:App.Localizations.get("codePrefixInfo"),hide:"unfocus",position:{at:"top center",my:"bottom left"},show:"click",style:"qtip-dark qtip-shadow"}),this.ui.onlyAddIconInfo.qtip({content:App.Localizations.get("onlyAddCustomIconInfo"),hide:"unfocus",position:{at:"top center",my:"bottom left"},show:"click",style:"qtip-dark qtip-shadow"})},onAttach(){this.attachmentsView=new T},acceptTrademarkLicense(){this.ui.trademarkLicense[0].close(),this.onSubmitReorder(this.submitButtonState,this.reorderData,this.hasAndIsAllowedIcons)},checkQuantityChar(){const e=this.ui.reorderQuantity.val();this.invalidQuantityChars.test(this.ui.reorderQuantity.val())&&this.ui.reorderQuantity.val(e.replace(this.invalidQuantityChars,""))},clearErrors(){ke(this.ui,function(e){e.removeClass("error")}.bind(this)),this.ui.attachment_1.html("")},onFileChanged(e){const t=e.get("type");this.attachmentsModel[t]=e.get("images"),o()("#attachmentError").text(""),this.ui.attachment_1.html("")},onFileRemoved(e){const t=e.get("images"),i=e.get("type");this.attachmentsModel[i]&&(delete this.attachmentsModel[i],o()("#attachmentError").text("")),t&&t.length>0&&(this.attachmentsModel[e.get("type")]=e.get("images"))},onSubmitReorder(e,t,i){let n;i?this.model.reorder(t).then(function(e){return n=new(l().OrderModel)(e),n.createResources(this.attachmentsModel)}.bind(this)).done(function(e){(0,yt.q)(n)}.bind(this)).fail(function(){this.ui.serverError.text(App.Localizations.get("trackable:orders").errors?.serviceUpdateOrderError),e.set("isWaiting",!1)}.bind(this)):this.model.reorder(t).done((e=>{(0,yt.q)(e)})).fail(function(){this.ui.serverError.text(App.Localizations.get("trackable:orders")?.errors?.serviceUpdateOrderError),e.set("isWaiting",!1)}.bind(this))}
1,onlyAddIconToggle(){!0===this.ui.onlyAddIcon.prop("checked")?(this.ui.iconDefault.prop("disabled",!0),this.ui.reorderQuantity.prop("disabled",!0),this.ui.reorderQuantity.val(0),this.ui.codePrefix.prop("disabled",!0),this.ui.activationCode.prop("disabled",!0),this.ui.detailsPanel.slideToggle(),this.ui.iconDefault.parent().css("opacity",".5"),this.ui.iconRadio.trigger("click")):(this.ui.iconDefault.prop("disabled",!1),this.ui.reorderQuantity.prop("disabled",!1),this.ui.codePrefix.prop("disabled",!1),this.ui.activationCode.prop("disabled",!1),this.ui.detailsPanel.slideToggle(),this.ui.iconDefault.parent().css("opacity","1"))},setErrorsFromReorderValidate(e){ke(e,function(e){e.name.indexOf("attachment")>-1?this.ui[e.name].text(e.message).css({color:L,"font-size":"12px"}):(this.ui[e.name].addClass("error"),this.ui[e.name].addClass("disabled"),this.ui[e.name].blur())}.bind(this))},showTrademarkLicense(e){const t=this.ui.activationCode.val().trim(),i={activationCode:""===t?null:t,codePrefix:this.ui.codePrefix.val(),contactName:this.ui.contactName.val(),email:this.ui.email.val(),quantity:this.ui.reorderQuantity.val()};this.reorderData=i;let n=[];this.ui.onlyAddIcon.prop("checked")||(n=l().OrderValidator.validateReorder(i));let s=[];const r=this.model.get("items");this.hasAndIsAllowedIcons=r[0].icons&&this.ui.iconRadio.is(":checked"),this.hasAndIsAllowedIcons&&(s=l().OrderValidator.validateReorderAttachments(this.attachmentsModel)),this.clearErrors(),0===n.length&&0===s.length?(this.ui.trademarkLicense[0].showModal(),this.submitButtonState=e):(e.set("isWaiting",!1),s.length>0&&(n=wt(n,s)),this.setErrorsFromReorderValidate(n),o()("html, body").animate({scrollTop:this.ui.wrapper.offset().top},0))}});i(79417);var At=i(12897),Et=i.n(At),It=i(55042),Ct=i.n(It),Ot=new(Et())({id:"empty-box--inline",use:"empty-box--inline-usage",viewBox:"0 0 196 188",content:'<symbol xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 196 188" id="empty-box--inline"><ellipse cx="97.88" cy="94" fill="#F5F5F5" rx="93.116" ry="94" /><path fill="#E1E1E1" fill-rule="evenodd" d="M49.341 59c.547 0 .99-.448.99-1s-.443-1-.99-1a.995.995 0 0 0-.99 1c0 .552.443 1 .99 1m0 1a1.99 1.99 0 0 0 1.981-2c0-1.105-.887-2-1.981-2a1.99 1.99 0 0 0-1.981 2c0 1.105.887 2 1.981 2M124.626 30a.996.996 0 0 0 .991-1c0-.552-.444-1-.991-1a.996.996 0 0 0-.991 1c0 .552.444 1 .991 1m0 1a1.99 1.99 0 0 0 1.981-2c0-1.105-.887-2-1.981-2a1.99 1.99 0 0 0-1.981 2c0 1.105.887 2 1.981 2M170.193 73a.996.996 0 0 0 .991-1c0-.552-.444-1-.991-1a.995.995 0 0 0-.99 1c0 .552.443 1 .99 1m0 1a1.99 1.99 0 0 0 1.981-2c0-1.105-.887-2-1.981-2a1.99 1.99 0 0 0-1.981 2c0 1.105.887 2 1.981 2M180.099 118a.996.996 0 0 0 .991-1c0-.552-.444-1-.991-1a.995.995 0 0 0-.99 1c0 .552.443 1 .99 1m0 1a1.99 1.99 0 0 0 1.981-2c0-1.105-.887-2-1.981-2a1.99 1.99 0 0 0-1.981 2c0 1.105.887 2 1.981 2M141.466 65a1.99 1.99 0 0 0 1.981-2c0-1.105-.887-2-1.981-2a1.99 1.99 0 0 0-1.981 2c0 1.105.887 2 1.981 2m0 1c1.641 0 2.972-1.343 2.972-3s-1.331-3-2.972-3-2.972 1.343-2.972 3 1.331 3 2.972 3M85.993 34a1.99 1.99 0 0 0 1.981-2c0-1.105-.887-2-1.981-2a1.99 1.99 0 0 0-1.981 2c0 1.105.887 2 1.98 2m0 1c1.641 0 2.972-1.343 2.972-3s-1.331-3-2.972-3-2.972 1.343-2.972 3 1.33 3 2.972 3" clip-rule="evenodd" /><path fill="#fff" fill-rule="evenodd" d="M63.21 26c.546 0 .99-.448.99-1s-.444-1-.99-1a.995.995 0 0 0-.991 1c0 .552.443 1 .99 1m0 1a1.99 1.99 0 0 0 1.98-2c0-1.105-.887-2-1.98-2a1.99 1.99 0 0 0-1.982 2c0 1.105.887 2 1.981 2M108.777 11c.547 0 .99-.448.99-1s-.443-1-.99-1a.996.996 0 0 0-.991 1c0 .552.444 1 .991 1m0 1a1.99 1.99 0 0 0 1.981-2c0-1.105-.887-2-1.981-2a1.99 1.99 0 0 0-1.982 2c0 1.105.887 2 1.982 2M97.88 58a1.99 1.99 0 0 0 1.981-2c0-1.105-.887-2-1.981-2a1.99 1.99 0 0 0-1.981 2c0 1.105.887 2 1.981 2m0 1c1.641 0 2.972-1.343 2.972-3s-1.33-3-2.972-3-2.972 1.343-2.972 3 1.33 3 2.972 3M22.595 78a1.99 1.99 0 0 0 1.981-2c0-1.105-.887-2-1.981-2a1.99 1.99 0 0 0-1.981 2c0 1.105.887 2 1.98 2m0 1c1.641 0 2.972-1.343 2.972-3s-1.33-3-2.972-3-2.972 1.343-2.972 3 1.33 3 2.972 3M159.297 48a1.99 1.99 0 0 0 1.981-2c0-1.105-.887-2-1.981-2a1.99 1.99 0 0 0-1.981 2c0 1.105.887 2 1.981 2m0 1c1.
1641 0 2.972-1.343 2.972-3s-1.331-3-2.972-3-2.972 1.343-2.972 3 1.33 3 2.972 3M19.623 122a1.99 1.99 0 0 0 1.981-2c0-1.105-.887-2-1.98-2a1.99 1.99 0 0 0-1.982 2c0 1.105.887 2 1.981 2m0 1c1.641 0 2.972-1.343 2.972-3s-1.33-3-2.972-3-2.972 1.343-2.972 3 1.33 3 2.972 3" clip-rule="evenodd" /><path fill="#E1E1E1" fill-rule="evenodd" d="M53.303 28c.547 0 .99.448.99 1v2c0 .552-.443 1-.99 1a.995.995 0 0 1-.99-1v-2c0-.552.443-1 .99-1M53.303 34c.547 0 .99.448.99 1v2c0 .552-.443 1-.99 1a.995.995 0 0 1-.99-1v-2c0-.552.443-1 .99-1M54.294 33c0-.552.443-1 .99-1h1.982c.547 0 .99.448.99 1s-.443 1-.99 1h-1.982a.995.995 0 0 1-.99-1M48.35 33c0-.552.444-1 .99-1h1.982c.547 0 .99.448.99 1s-.443 1-.99 1h-1.981a.995.995 0 0 1-.99-1" clip-rule="evenodd" /><path fill="#fff" fill-rule="evenodd" d="M142.456 26c.548 0 .991.448.991 1v2c0 .552-.443 1-.991 1a.995.995 0 0 1-.99-1v-2c0-.552.443-1 .99-1M142.456 32c.548 0 .991.448.991 1v2c0 .552-.443 1-.991 1a.995.995 0 0 1-.99-1v-2c0-.552.443-1 .99-1M143.447 31c0-.552.444-1 .991-1h1.981c.547 0 .99.448.99 1s-.443 1-.99 1h-1.981a.996.996 0 0 1-.991-1M137.504 31c0-.552.443-1 .99-1h1.981c.548 0 .991.448.991 1s-.443 1-.991 1h-1.981a.995.995 0 0 1-.99-1M88.965 7c.547 0 .99.448.99 1v2c0 .552-.443 1-.99 1a.995.995 0 0 1-.99-1V8c0-.552.443-1 .99-1M88.965 13c.547 0 .99.448.99 1v2c0 .552-.443 1-.99 1a.995.995 0 0 1-.99-1v-2c0-.552.443-1 .99-1M89.955 12c0-.552.444-1 .99-1h1.982c.547 0 .99.448.99 1s-.443 1-.99 1h-1.981a.995.995 0 0 1-.99-1M84.012 12c0-.552.443-1 .99-1h1.982c.547 0 .99.448.99 1s-.443 1-.99 1h-1.982a.995.995 0 0 1-.99-1M75.096 59c.547 0 .99.448.99 1v2c0 .552-.443 1-.99 1a.995.995 0 0 1-.99-1v-2c0-.552.443-1 .99-1M75.096 65c.547 0 .99.448.99 1v2c0 .552-.443 1-.99 1a.995.995 0 0 1-.99-1v-2c0-.552.443-1 .99-1M76.087 64c0-.552.443-1 .99-1h1.981c.547 0 .991.448.991 1s-.444 1-.99 1h-1.982a.995.995 0 0 1-.99-1M70.143 64c0-.552.444-1 .99-1h1.982c.547 0 .99.448.99 1s-.443 1-.99 1h-1.981a.995.995 0 0 1-.99-1M29.53 55c.546 0 .99.448.99 1v1.5c0 .552-.444 1-.99 1a.995.995 0 0 1-.991-1V56c0-.552.443-1 .99-1M29.53 61.5c.546 0 .99.448.99 1V64c0 .552-.444 1-.99 1a.995.995 0 0 1-.991-1v-1.5c0-.552.443-1 .99-1M31.015 60c0-.552.444-1 .99-1h1.486c.548 0 .991.448.991 1s-.443 1-.99 1h-1.486a.995.995 0 0 1-.991-1M24.576 60c0-.552.444-1 .99-1h1.487c.547 0 .99.448.99 1s-.443 1-.99 1h-1.486a.995.995 0 0 1-.99-1" clip-rule="evenodd" /><path fill="#E1E1E1" fill-rule="evenodd" d="M120.663 41c.548 0 .991.448.991 1v2c0 .552-.443 1-.991 1a.995.995 0 0 1-.99-1v-2c0-.552.443-1 .99-1M120.663 47c.548 0 .991.448.991 1v2c0 .552-.443 1-.991 1a.995.995 0 0 1-.99-1v-2c0-.552.443-1 .99-1M121.654 46c0-.552.444-1 .991-1h1.981c.547 0 .99.448.99 1s-.443 1-.99 1h-1.981a.996.996 0 0 1-.991-1M115.71 46c0-.552.444-1 .991-1h1.981c.547 0 .991.448.991 1s-.444 1-.991 1h-1.981a.996.996 0 0 1-.991-1M126.607 68c.547 0 .991.448.991 1v2c0 .552-.444 1-.991 1a.996.996 0 0 1-.991-1v-2c0-.552.444-1 .991-1M126.607 74c.547 0 .991.448.991 1v2c0 .552-.444 1-.991 1a.996.996 0 0 1-.991-1v-2c0-.552.444-1 .991-1M127.598 73c0-.552.443-1 .99-1h1.981c.548 0 .991.448.991 1s-.443 1-.991 1h-1.981a.995.995 0 0 1-.99-1M121.654 73c0-.552.444-1 .991-1h1.981c.547 0 .991.448.991 1s-.444 1-.991 1h-1.981a.996.996 0 0 1-.991-1" clip-rule="evenodd" /><ellipse cx="100.852" cy="174" fill="#E1E1E1" rx="90.144" ry="14" /><path fill="#ABABAB" d="m94.472 73-71.646 5.642 94.004 4.617 58.943-6.155z" /><path fill="#6E6E6E" fill-rule="evenodd" d="m94.458 71.998 81.364 4.107.052 1.993-59.018 6.164-94.078-4.62-.03-1.996zm.028 2.004L38.5 78.412l78.302 3.845 46.017-4.806z" clip-rule="evenodd" /><path fill="#8C8C8C" d="m175.772 77.103-80.26-4.05a.995.995 0 0 0-1.04.998v7.669l22.358 1.539z" /><path fill="#6E6E6E" fill-rule="evenodd" d="M93.481 74.05a1.99 1.99 0 0 1 2.08-1.997l80.261 4.052.052 1.993-59.027 6.164-23.366-1.608zm69.338 3.4-67.356-3.4v6.736l21.349 1.47z" clip-rule="evenodd" /><path fill="#C7C7C7" d="M21.302 80.717v88.749c0 2.029 1.505 3.737 3.502 3.972l91.7 10.833c.216.026.434.015.646-.031l58.033-12.588c1.826-.396 3.13-2.025 3.13-3.911V77.102l-61.483 5.13-93.473-3.513a1.99 1.99 0 0 0-2.055 1.998" /><path fill="#6E6E6E" fill-rule="evenodd" d="M179.304 76.017v91.724c0 2.357-1.63 4.394-3.913 4.889l-58.033 12.588a3 3 0 0 1-.969.047l-91.7-10.833c-2.496-.295-4.378-2.43-4.378-4.966V80.717c0-1.7 1.399-3.06 3.082-2.998l93.414 3.512zm-1.982 2.172-60.47 5.045-93.532-3.516a.995.995 0 0 0-1.028 1v88.748a2.99 2.99 0 0 0 2.627 2.979l91.7 10.833a1 1 0 0 0 .323-.015l58.033-12.589a2.99 2.99 0 0 0 2.347-2.933z" clip-rule="evenodd" /><path fill="#ABABAB" d="m178.313 77.103-61.483 5.13v100.839a.993.993 0 0 0 1.199.978l57.154-12.398c1.826-.396 3.13-2.025 3.13-3.911z" /><path fill="#6E6E6E" fill-rule="evenodd" d="M179.304 76.017v91.724c0 2.357-1.63 4.394-3.912 4.889l-57.155 12.398c-1.234.267-2.398-.682-2.398-1.956V81.312zm-61.483 7.136v99.919l57.154-12.398a2.99 2.99 0 0 0 2.348-2.933V78.189z" clip-rule="evenodd" /><path fill="#E1E1E1" d="m1.229 114.96 18.974-35.716a1.98 1.98 0 0 1 1.84-1.052l94.279 4.556-18.88 42.304a1.98 1.98 0 0 1-1.982 1.171L2.8 117.897c-1.416-.127-2.243-1.673-1.571-2.937" /><path fill="#6E6E6E" fill-rule="evenodd" d="M21.996 79.19a.99.99 0 0 0-.92.527L2.102 115.433a1 1 0 0 0 .785 1.468l92.661 8.326a.99.99 0 0 0 .991-.585l18.282-40.965zm-2.666-.418a2.97 2.97 0 0 1 2.76-1.58l95.733 4.627-19.478 43.644a2.97 2.97 0 0 1-2.973 1.756l-92.66-8.326c-2.124-.19-3.364-2.509-2.356-4.406z" clip-rule="evenodd" /><path fill="#C7C7C7" d="m134.84 120.393-18.01-37.645 61.113-6.019a1.98 1.98 0 0 1 1.983 1.134l14.89 31.713c.566 1.205-.173 2.621-1.478 2.831l-56.401 9.091a1.98 1.98 0 0 1-2.097-1.105" /><path fill="#6E6E6E" fill-rule="evenodd" d="M177.847 75.734a2.97 2.97 0 0 1 2.974 1.7l14.89 31.713c.849 1.808-.26 3.932-2.217 4.248l-56.402 9.091a2.965 2.965 0 0 1-3.144-1.658L115.32 81.892zm1.184 2.558a.99.99 0 0 0-.992-.567l-59.7 5.88 17.393 36.353a.99.99 0 0 0 1.048.553l56.402-9.091a1.002 1.002 0 0 0 .739-1.416z" clip-rule="evenodd" /></symbol>'});Ct().add(Ot);i(96540);var St,_t,Rt,Mt,kt,Tt=i(5338),Ut=i(61689),zt=i(74848);const DisabledWarning=()=>{const{icon:e}=(0,Ut.N)({colors:"warning"});
1return(0,zt.jsx)(Ut.L,{hideCloseButton:!0,type:"warning",warningIcon:(0,zt.jsx)("svg",{"aria-hidden":"true",className:e(),children:St||(St=(0,zt.jsx)("use",{href:"#warning--inline"}))}),children:_t||(_t=(0,zt.jsxs)("span",{children:["Our Trackable Code ordering system is getting a refresh and is currently unavailable. For urgent orders or questions regarding orders, please email"," ",(0,zt.jsx)("a",{href:"mailto:[email protected]",children:"[email protected]"}),"."]}))})},EmptyDisabledWarning=()=>Rt||(Rt=(0,zt.jsx)("div",{className:"flex grow bg-grey-50 p-4 pt-0",children:(0,zt.jsxs)("div",{className:"max-w-[730px] mx-auto mb-4 px-6 py-4 flex flex-col gap-6 bg-white rounded",children:[(0,zt.jsx)(DisabledWarning,{}),(0,zt.jsx)("div",{className:"flex justify-center",children:(0,zt.jsx)("svg",{"aria-hidden":"true",className:"h-[188px] w-[198px]",children:(0,zt.jsx)("use",{href:"#empty-box--inline"})})})]})}));App.Localizations.set(window.resources),App.Localizations.set("trackable:orders",window.localTrackableOrders);const Lt=(({hasFetchedOrders:e,localization:t})=>{h.U.HISTORY,t.crumbs.orders,h.U.DETAILS,t.crumbs.orderDetails,h.U.REORDER,t.crumbs.reorder,h.U.EDIT,t.crumbs.editOrder,h.U.INVOICE,t.crumbs.invoice;return r().View.extend({el:"#order-layout",ui:{heading:"#page-heading",newOrder:"#new-order",btnHideAlert:".btn-hide"},regions:{content:"#order-container",orderSearch:"#order-search"},events:{"click @ui.btnHideAlert":"hideAlert","scroll @ui.window":"handleWindowScroll"},childViewEvents:{"order:selected":"onOrderSelected","profile:requested":"redirectToProfile","reorder:selected":"onReorderSelected","edit:selected":"onEditSelected","invoice:selected":"onInvoiceSelected","loader:show":"handleLoaderShow","loader:hide":"handleLoaderHide","order:search":"_handleOrderSearch"},collection:new(l().OrderCollection),previousQuery:"",orderCollectionView:null,orderSearchView:null,initialize:function(e){switch(this.localization=App.Localizations.get("trackable:orders"),this.listenTo(c.H,"order:history:requested",this.fetchIfNeededAndSetOrderHistory),window.disableOrders||(this.orderSearchView=new Z({localization:this.localization}),this.getRegion("orderSearch").show(this.orderSearchView)),e.name){case h.U.DETAILS:this.fetchAndSetIndividualOrder(e.id,this.showOrderDetails);break;case h.U.REORDER:this.fetchAndSetIndividualOrder(e.id,this.showReorder);break;case h.U.EDIT:this.fetchAndSetIndividualOrder(e.id,this.showEditOrder);break;case h.U.INVOICE:this.fetchAndshowInvoice(e.id);break;default:this.fetchAndSetOrderHistory()}this.applyTailwindStyles(),this.bindUIElements()},applyTailwindStyles(){this.ui.newOrder.addClass((0,d.P$)({reverse:!0,hasIcon:!0}))},handleLoaderShow:function(){const e=o()("<div/>",{class:"loading lazy-spinner"});e.css("margin-top","48px"),o()(this.regions.content).append(e)},handleLoaderHide:function(){o()(".lazy-spinner").remove()},clickBtnHideAlert:function(){this.ui.btnHideAlert.parent().is(":visible")&&this.ui.btnHideAlert.trigger("click")},onUpdateRoute(e,t,i){App.Router.navigate(t),c.H.trigger("update:crumbs",e),this.ui.heading.text(i),document.title=i,this.$el.toggleClass("xl:bg-gray-50",e===h.U.HISTORY)},onShowOrderSearch(e){o()(this.orderSearchView?.el).toggleClass("hidden",!e)},onOrderSelected:function(e){this.showOrderDetails(e),this.clickBtnHideAlert()},onReorderSelected:function(e){this.showReorder(e),this.clickBtnHideAlert()},onInvoiceSelected:function(e){this.getRegion("content").show(new H),this.fetchAndshowInvoice(e)},onEditSelected:function(e){this.showEditOrder(e),this.clickBtnHideAlert()},showReorder:function(e){this.onShowOrderSearch(!1),this.onUpdateRoute(h.U.REORDER,`/account/orders/${e.id}/reorder`,t.heading.reorder),this.getRegion("content").show(new xt({model:e}))},showEditOrder:function(e){this.onShowOrderSearch(!1),this.onUpdateRoute(h.U.EDIT,`/account/orders/${e.id}/edit`,t.heading.editOrder),this.getRegion("content").show(new D({model:e}))},showOrderDetails:function(e){this.onShowOrderSearch(!1),this.onUpdateRoute(h.U.DETAILS,`/account/orders/${e.id}`,t.heading.orderDetails),this.getRegion("content").show(new K({model:e,template:"#order-details-template",className:"order-details order-item"}))},fetchAndSetIndividualOrder(e,t){const i=new(l().OrderModel)({id:e}),n=t.bind(this);i.fetch({success:function(e){n(i)}})},fetchAndshowInvoice:function(e){this.onShowOrderSearch(!1),this.onUpdateRoute(h.U.INVOICE,`/account/orders/${e}/invoice`,`${t.heading.invoice} ${e}`);new(l().OrderInvoiceModel)({id:e}).fetch({success:function(e){this.getRegion("content").show(new K({model:e,template:"#order-invoice-template",className:"order-invoice"}))}.bind(this),error:function(e){this.getRegion("content").show(new B({errorText:t?.errors?.orderInvoiceError}))}.bind(this)})},fetchAndSetOrderHistory:function(){this.collection.fetch({success:function(){e=!0,this.showOrderHistory()}.bind(this)})},fetchIfNeededAndSetOrderHistory:function(){e?this.showOrderHistory():this.fetchAndSetOrderHistory()},showOrderHistory:function(){this.onUpdateRoute(h.U.HISTORY,"/account/orders",t.heading.orders),this.orderCollectionView=new G({collection:this.collection}),this.orderCollectionView.collection.length?(o()("#disabled-warning-root").removeClass("hidden"),this.onShowOrderSearch(!0),this.getRegion("content").show(this.orderCollectionView)):(o()("#empty-disabled-root").removeClass("hidden"),this.onShowOrderSearch(!1),window.disableOrders?o()("#order-content").addClass("hidden"):this.getRegion("content").show(new q({i18n:t?.misc})),this.$el.addClass("empty-region"))}
1,redirectToProfile:function(){window.location="/my/default.aspx"},hideAlert:function(e){e.preventDefault(),this.ui.btnHideAlert.parent().fadeOut()},_handleOrderSearch(e){e!==this.previousQuery&&(this.previousQuery=e,this.collection.query(e))}})})({hasFetchedOrders:!1,localization:App.Localizations.get("trackable:orders")});(()=>{const e=document.getElementById("disabled-warning-root"),t=document.getElementById("empty-disabled-root");e&&(0,Tt.createRoot)(e).render(Mt||(Mt=(0,zt.jsx)(DisabledWarning,{}))),t&&(0,Tt.createRoot)(t).render(kt||(kt=(0,zt.jsx)(EmptyDisabledWarning,{})))})()},59327(e,t,i){var n=i(93633);e.exports=(n.default||n).template({compiler:[8,">= 4.3.0"],main:function(e,t,i,n,o){var s,r=e.lambda,a=e.escapeExpression,l=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<h2 class="'+a(r(null!=(s=null!=t?l(t,"styles"):t)?l(s,"heading"):s,t))+'">'+(null!=(s=r(null!=(s=null!=t?l(t,"locals"):t)?l(s,"NoCodeOrders"):s,t))?s:"")+'</h2>\n<p class="'+a(r(null!=(s=null!=t?l(t,"styles"):t)?l(s,"getStartedText"):s,t))+'">'+(null!=(s=r(null!=(s=null!=t?l(t,"locals"):t)?l(s,"GetStartedSubmitOrder"):s,t))?s:"")+"</p>\n<a href='/account/orders/new' class=\""+a(r(null!=(s=null!=t?l(t,"styles"):t)?l(s,"gcButtonPrimaryStyles"):s,t))+'">'+(null!=(s=r(null!=(s=null!=t?l(t,"locals"):t)?l(s,"SubmitNewOrder"):s,t))?s:"")+"</a>\n\n"},useData:!0})},55317(e,t,i){var n=i(93633);e.exports=(n.default||n).template({compiler:[8,">= 4.3.0"],main:function(e,t,i,n,o){var s,r=e.lambda,a=e.escapeExpression,l=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<div class="'+a(r(null!=(s=null!=t?l(t,"styles"):t)?l(s,"inputWrapper"):s,t))+'">\n  <label for="order-search-query" class="'+a(r(null!=(s=null!=t?l(t,"styles"):t)?l(s,"label"):s,t))+'">\n    '+(null!=(s=r(null!=(s=null!=t?l(t,"locals"):t)?l(s,"search"):s,t))?s:"")+'\n  </label>\n  <input id="order-search-query" placeholder="'+(null!=(s=r(null!=(s=null!=t?l(t,"locals"):t)?l(s,"placeholder"):s,t))?s:"")+'" type="text" class="'+a(r(null!=(s=null!=t?l(t,"styles"):t)?l(s,"searchInput"):s,t))+'" />\n</div>\n<button id="order-search-button" class="'+a(r(null!=(s=null!=t?l(t,"styles"):t)?l(s,"searchBtn"):s,t))+'">\n  <svg class="'+a(r(null!=(s=null!=t?l(t,"styles"):t)?l(s,"searchIcon"):s,t))+'" aria-label="'+(null!=(s=r(null!=(s=null!=t?l(t,"locals"):t)?l(s,"searchAriaLabel"):s,t))?s:"")+'" height="24" width="24">\n    <use href="#search--inline" />\n  </svg>\n</button>'},useData:!0})}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.