1"use strict";(self.webpackChunkchefworks_theme=self.webpackChunkchefworks_theme||[]).push([[38],{24502(e,n,t){t.r(n),t.d(n,{default:()=>i});const i={Desktop:"(min-width: 1041px)",Mobile:"(max-width: 1040px)",LargeMobile:"(max-width: 1040px) and (min-width: 876px)",MediumMobile:"(max-width: 875px) and (min-width: 591px)",SmallMobile:"(max-width: 590px) and (min-width: 401px)",VerySmallMobile:"(max-width: 400px)",BaseFontFamily:"Montserrat, arial, sans-serif",salesLayout:"CjRChoCPsaVbDm0TEhZS",loading:"IQb2RfYqs8rfj8jDZV9S",layoutLoadingImage:"gFNCUXe20wmMYnmqYeEx",mainContent:"BU4vQOgzJKULyXIxuVfM"}},13039(e,n,t){t.r(n),t.d(n,{DocumentTitle:()=>l});var i,r=t(14041),o=t(719),a=(i=function(e,n){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var t in n)Object.prototype.hasOwnProperty.call(n,t)&&(e[t]=n[t])},i(e,n)},function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function t(){this.constructor=e}i(e,n),e.prototype=null===n?Object.create(n):(t.prototype=n.prototype,new t)}),l=function(e){function n(n){var t=e.call(this,n)||this;return t.updateTitle=t.updateTitle.bind(t),t.componentDidMount=t.updateTitle,t.componentDidUpdate=t.updateTitle,t._combineTitle=function(e){return e},t}return a(n,e),Object.defineProperty(n.prototype,"childTitle",{get:function(){var e=this.props.children;return e instanceof Array?e.join(""):e},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"nextTitle",{get:function(){return this.props.title||this.childTitle},enumerable:!1,configurable:!0}),n.prototype.updateTitle=function(){"undefined"!=typeof document&&this.nextTitle!==this._title&&(this._title=this.nextTitle,document.title=this.combineTitle(this._title))},n.prototype.combineTitle=function(e){return this.props.exact?e:this._combineTitle(e)},n.prototype.render=function(){var e=this;return r.createElement(o.Context.Consumer,null,function(n){return e._combineTitle=n,e.updateTitle(),null})},n}(r.Component)},17781(e,n,t){t.r(n),t.d(n,{CONFIGURATORS:()=>_,CONFIGURATOR_TYPE_DIRECT_TO_FILM:()=>m,CONFIGURATOR_TYPE_EMBROIDERY:()=>f,GET_MY_CUSTOM_PRODUCT:()=>g,GET_MY_CUSTOM_PRODUCTS:()=>b,GET_MY_CUSTOM_PRODUCT_CONFIG:()=>y,SAVE_MY_CUSTOM_PRODUCT:()=>h});var i,r,o,a,l,c,u=t(1588),s=function(e,n){return Object.defineProperty?Object.defineProperty(e,"raw",{value:n}):e.raw=n,e},d=(0,u.gql)(i||(i=s(["\n fragment MyProductFields on MyProduct {\n entity_id\n item_id\n embroidery_data {\n original_product_id\n emb_color\n emb_color_price\n emb_color_size {\n color {\n available\n id\n price\n sku\n title\n }\n size {\n available\n id\n price\n sku\n title\n }\n }\n emb_digitization_price\n emb_flag\n emb_flag_price\n emb_image {\n caption\n facet\n img\n isMain\n large\n position\n thumb\n }\n emb_logo\n emb_logo_price\n emb_si\n emb_size\n emb_size_price\n emb_text\n emb_text_key_value {\n option_code\n option_id\n option_value\n }\n emb_text_options_key {\n blockIndex\n lines {\n label\n value\n option_id\n }\n }\n emb_text_price\n emb_selections {\n option_id\n option_value\n }\n emb_options\n image_delay_text\n d2f_artworks\n configurator_type\n }\n product_description\n product_name\n sku\n }\n"],["\n fragment MyProductFields on MyProduct {\n entity_id\n item_id\n embroidery_data {\n original_product_id\n emb_color\n emb_color_price\n emb_color_size {\n color {\n available\n id\n price\n sku\n title\n }\n size {\n available\n id\n price\n sku\n title\n }\n }\n emb_digitization_price\n emb_flag\n emb_flag_price\n emb_image {\n caption\n facet\n img\n isMain\n large\n position\n thumb\n }\n emb_logo\n emb_logo_price\n emb_si\n emb_size\n emb_size_price\n emb_text\n emb_text_key_value {\n option_code\n option_id\n option_value\
1n }\n emb_text_options_key {\n blockIndex\n lines {\n label\n value\n option_id\n }\n }\n emb_text_price\n emb_selections {\n option_id\n option_value\n }\n emb_options\n image_delay_text\n d2f_artworks\n configurator_type\n }\n product_description\n product_name\n sku\n }\n"]))),p=function(e,n){return Object.defineProperty?Object.defineProperty(e,"raw",{value:n}):e.raw=n,e},f="embroidery",m="direct_to_film",_=((r={})[f]="Embroidery",r[m]="Direct To Film",r),y=(0,u.gql)(o||(o=p(["\n query getMyProductConfig {\n getMyProductConfig {\n enabled\n default_page_limit\n products_per_page_values\n exclude_option_ids\n delay_message\n enable_mockup_download\n }\n }\n"],["\n query getMyProductConfig {\n getMyProductConfig {\n enabled\n default_page_limit\n products_per_page_values\n exclude_option_ids\n delay_message\n enable_mockup_download\n }\n }\n"]))),b=(0,u.gql)(a||(a=p(["\n ",'\n query getMyProducts(\n $page: Int = 1\n $pageSize: Int = 12,\n $configuratorType: String = "embroidery",\n ) {\n getMyProducts(\n page: $page\n page_size: $pageSize\n configurator_type: $configuratorType\n ) {\n total_count\n items {\n ...MyProductFields\n }\n }\n }\n'],["\n ",'\n query getMyProducts(\n $page: Int = 1\n $pageSize: Int = 12,\n $configuratorType: String = "embroidery",\n ) {\n getMyProducts(\n page: $page\n page_size: $pageSize\n configurator_type: $configuratorType\n ) {\n total_count\n items {\n ...MyProductFields\n }\n }\n }\n'])),d),g=(0,u.gql)(l||(l=p(["\n ","\n query getMyProduct($id: Int!){\n getMyProduct(\n id: $id\n ) {\n ...MyProductFields\n }\n }\n"],["\n ","\n query getMyProduct($id: Int!){\n getMyProduct(\n id: $id\n ) {\n ...MyProductFields\n }\n }\n"])),d),h=(0,u.gql)(c||(c=p(["\n ","\n mutation saveMyProduct(\n $data: SaveMyProductInput!\n ) {\n saveMyProduct(\n input: $data\n ) {\n ...MyProductFields\n }\n }\n"],["\n ","\n mutation saveMyProduct(\n $data: SaveMyProductInput!\n ) {\n saveMyProduct(\n input: $data\n ) {\n ...MyProductFields\n }\n }\n"])),d)},59370(e,n,t){t.r(n),t.d(n,{myCustomProductsConfig:()=>i});var i=(0,t(777).makeVar)(null)},77638(e,n,t){t.r(n),t.d(n,{MyCustomProductsLayout:()=>g});var i=t(14041),r=t(30004),o=t(20307),a=t(50654),l=t(17781),c=t(23124),u=t(17469),s=t(98816),d=t(13039),p=t(52015),f=t(59370),m=t(78561),_=t(24502),y=function(e,n,t,i){return new(t||(t=Promise))(function(r,o){function a(e){try{c(i.next(e))}catch(e){o(e)}}function l(e){try{c(i.throw(e))}catch(e){o(e)}}function c(e){var n;e.done?r(e.value):(n=e.value,n instanceof t?n:new t(function(e){e(n)})).then(a,l)}c((i=i.apply(e,n||[])).next())})},b=function(e,n){var t,i,r,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=l(0),a.throw=l(1),a.return=l(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function l(l){return function(c){return function(l){if(t)throw new TypeError("Generator is already executing.");for(;a&&(a=0,l[0]&&(o=0)),o;)try{if(t=1,i&&(r=2&l[0]?i.return:l[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,l[1])).done)return r;switch(i=0,r&&(l=[2&l[0],r.value]),l[0]){case 0:case 1:r=l;break;case 4:return o.label++,{value:l[1],done:!1};case 5:o.label++,i=l[1],l=[0];continue;case 7:l=o.ops.pop(),o.trys.pop();continue;default:if(!(r=o.trys,(r=r.length>0&&r[r.length-1])||6!==l[0]&&2!==l[0])){o=0;continue}if(3===l[0]&&(!r||l[1]>r[0]&&l[1]<r[3])){o.label=l[1];break}if(6===l[0]&&o.label<r[1]){o.label=r[1],r=l;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(l);break}r[2]&&o.ops.pop(),o.trys.pop();continue}l=n.call(e,o)}catch(e){l=[6,e],i=0}finally{t=r=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}([l,c])}}};function g(e){var n=this,t=e.children,g=e.showSidebar,h=void 0!==g&&g,v=(0,r.usePhraseTranslater)(),w=(0,c.useAccount)().isLoggedIn,M=(0,i.useState)(!1),T=M[0],P=M[1],E=(0,a.useReactiveVar)(f.myCustomProductsConfig),C=(0,o.useQuery)(l.GET_MY_CUSTOM_PRODUCT_CONFIG).data;return(0,i.useEffect)(function(){!0!==window.isSessionInitialized&&y(n,void 0,void 0,function(){return b(this,function(e){switch(e.label){case 0:return[4,(0,u.InitCustomerSession)(!1,!0)];case 1:return e.sent(),[2]}})}).then(function(){window.isSessionInitialized=!0})},[w]),(0,i.useEffect)(function(){var e;(null===(e=null==C?void 0:C.getMyProductConfig)||void 0===e?void 0:e.enabled)&&((0,f.myCustomProductsConfig)(C.getMyProductConfig),P(!0))},[C]),i.createElement(s.MainColumn,{className:_.default.salesLayout},i.createElement(d.DocumentTitle,null,v("My Custom Products")),h&&i.createElement(p.LeftSidebar,null),T&&(null==E?void 0:E.enabled)&&i.createElement(m.LayoutContent,{fullWidth:!h},i.createElement("div",{className:_.default.mainContent},t)))}window.isSessionInitialized=!1},52015(e,n,t){t.r(n),t.d(n,{LeftSidebar:()=>z});var i,r=t(14041),o=t(96757),a=t(50654),l=t(30004),c=t(98485),u=t(7459),s=t(777),d=t(49033),p=function(e,n){return Object.defineProperty?Object.defineProperty(e,"raw",{value:n}):e.raw=n,e},f=(0,t(1588).gql)(i||(i=p(["\n query GET_CUSTOMER_ACCOUNT_LINKS {\n customerAccountLinks {\n label\n path\n href\n html\n isVisible\n isDelimiter\n isTargetBlank\n }\n }\n"],["\n query GET_CUSTOMER_ACCOUNT_LINKS {\n customerAccountLinks {\n label\n path\n href\n html\n isVisible\n isDelimiter\n isTargetBlank\n }\n }\n"]))),m=(0,r.createContext)(void 0),_=function(e,n,t,i){return new(t||(t=Promise))(function(r,o){function a(e){try{c(i.next(e))}catch(e){o(e)}}function l(e){try{c(i.throw(e))}catch(e){o(e)}}function c(e){var n;e.done?r(e.value):(n=e.value,n instanceof t?n:new t(function(e){e(n)})).then(a,l)}c((i=i.apply(e,n||[])).next())})},y=function(e,n){var t,i,r,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]}
1,trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=l(0),a.throw=l(1),a.return=l(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function l(l){return function(c){return function(l){if(t)throw new TypeError("Generator is already executing.");for(;a&&(a=0,l[0]&&(o=0)),o;)try{if(t=1,i&&(r=2&l[0]?i.return:l[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,l[1])).done)return r;switch(i=0,r&&(l=[2&l[0],r.value]),l[0]){case 0:case 1:r=l;break;case 4:return o.label++,{value:l[1],done:!1};case 5:o.label++,i=l[1],l=[0];continue;case 7:l=o.ops.pop(),o.trys.pop();continue;default:if(!(r=o.trys,(r=r.length>0&&r[r.length-1])||6!==l[0]&&2!==l[0])){o=0;continue}if(3===l[0]&&(!r||l[1]>r[0]&&l[1]<r[3])){o.label=l[1];break}if(6===l[0]&&o.label<r[1]){o.label=r[1],r=l;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(l);break}r[2]&&o.ops.pop(),o.trys.pop();continue}l=n.call(e,o)}catch(e){l=[6,e],i=0}finally{t=r=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}([l,c])}}},b=(0,s.makeVar)(void 0);function g(e){var n=this,t=e.children,i=(0,r.useContext)(m),o=i.sidebarLoading,a=i.setSidebarLoading,l=(0,d.useLazyQuery)(f,{fetchPolicy:"cache-first",errorPolicy:"all"}),c=l[0],u=l[1],s=u.data,p=u.error;return(0,r.useEffect)(function(){p&&b([])},[p]),(0,r.useEffect)(function(){if(s){var e=s.customerAccountLinks;e&&b(e)}},[s]),(0,r.useEffect)(function(){o||a(!0),_(n,void 0,void 0,function(){var e;return y(this,function(n){switch(n.label){case 0:return(e=b())&&e.length>0?[2]:[4,c()];case 1:return n.sent(),[2]}})}).finally(function(){a(!1)})},[]),r.createElement(r.Fragment,null,t)}var h=t(78919);const v="eLthjk0MQIzLHhxMAD3T",w="nMeIoGMp48XuOXJHE9Ng",M="VjlwgZJATTuQBpMaNFML",T="TqEJaKp5L5ttpWe6kV__",P="TNNHbGCpuFSCG9Lqn9rw",E="nXg6Y6k1MuZXRXUgqIfj",C="ToQhqwHKIf75l86jy3qF",x="atnXVoM2MYYV8PyMs2HD",O="zwvnO_7UD57EFMfyQvij",k="k7ZNjrLf7suOi8wWPmJY",S="yoNMvv3qvm9XGiwPIvfN";var I=function(e){var n,t=e.link,i=t.label,o=t.path,a=t.href,l=t.isVisible,c=t.isDelimiter,s=t.isTargetBlank,d=function(e){return new URL(window.location.href).pathname.split("/").filter(Boolean).join("/")===e}(o),p=s?"_blank":"";if(!c&&(!i||""===o&&""===a))return null;var f=a.includes("customer/acount/logout")||"logout"===i.toLowerCase();return r.createElement("li",{className:(0,u.classes)(C,(n={},n[x]=l,n[S]=d,n))},!c&&r.createElement(r.Fragment,null,!d&&r.createElement(r.Fragment,null,f&&r.createElement(h.CloseSessionButton,{className:O,label:i,redirectToHomePage:!0}),!f&&r.createElement("a",{className:O,href:a,target:p,"aria-label":i},i)),d&&r.createElement("strong",{className:O},i)),c&&r.createElement("span",{className:k}))},L=function(){var e,n,t=function(){return window.innerWidth<1041},i=(0,r.useState)(t()),o=i[0],s=i[1],d=(0,r.useState)(!1),p=d[0],f=d[1],m=(0,a.useReactiveVar)(b),_=(0,l.usePhraseTranslater)(),y=function(){s(t())};return(0,r.useEffect)(function(){return y(),window.addEventListener("resize",y),function(){return window.removeEventListener("resize",y)}},[]),m&&m.length?r.createElement("div",{className:(0,u.classes)((e={},e[v]=!0,e[T]=p,e))},o&&r.createElement(c.AccessibleButton,{tag:"button",className:w,action:function(e){e&&e.preventDefault(),f(!p)},"aria-expanded":p,tabIndex:0},r.createElement("span",{className:M},_("My Account"))),r.createElement("ul",{className:(0,u.classes)((n={},n[P]=!0,n[E]=o&&!p,n))},m.map(function(e){return r.createElement(I,{link:e})}))):null};const N="Kn_vDyVaxVUux1si4cZd",j="gxZrERKsu8jySQEgvY3i",D="eiVyOUwDMYseF6sorEbD",F="ITniPcTE1rDHD5Kg1BQO";function z(){var e,n=(0,r.useState)(!1),t=n[0],i=n[1];return r.createElement(m.Provider,{value:{sidebarLoading:t,setSidebarLoading:i}},r.createElement(g,null,r.createElement("div",{className:N},r.createElement("div",{className:(0,u.classes)(j,(e={},e[D]=t,e))},t&&r.createElement(o.LoadingImage,{parentClass:F}),!t&&r.createElement(L,null)))))}},78561(e,n,t){t.r(n),t.d(n,{LayoutContent:()=>l});var i=t(14041),r=t(7459);const o="s14_FzQxcy_ffWR6uEFX",a="Mgjxmmzf3pZ85tIHQIaD";function l(e){var n,t=e.className,l=void 0===t?void 0:t,c=e.fullWidth,u=void 0!==c&&c,s=e.children,d=void 0===s?void 0:s;return i.createElement("div",{className:(0,r.classes)(o,l||"",(n={},n[a]=u,n))},d&&d)}}}]); 2//# sourceMappingURL=38.bundle.33e130213a038eba7011.js.map
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.