PageSourceSearch

https://assets.jiffy.com/packs/js/made-category-carousel-f6dc03e2ebab22fa.chunk.js

js jiffy.com collected 2026-10-03 21:43:00 UTC 32,295 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk=self.webpackChunk||[]).push([["7413"],{408346(e,t,r){r.d(t,{T:()=>init});var a=r(543655),i=r.n(a),n=r(692430),o=r(299410),s=r(490555),l=r(759670),c=r(160241),_=r(122388);function asyncGeneratorStep(e,t,r,a,i,n,o){try{var s=e[n](o),l=s.value}catch(e){r(e);return}s.done?t(l):Promise.resolve(l).then(a,i)}function _async_to_generator(e){return function(){var t=this,r=arguments;return new Promise(function(a,i){var n=e.apply(t,r);function _next(e){asyncGeneratorStep(n,a,i,_next,_throw,"next",e)}function _throw(e){asyncGeneratorStep(n,a,i,_next,_throw,"throw",e)}_next(void 0)})}}function _define_property(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _object_spread(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},a=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),a.forEach(function(t){_define_property(e,t,r[t])})}return e}function ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,a)}return r}function _object_spread_props(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}),e}function _ts_generator(e,t){var r,a,i,n={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},o=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),s=Object.defineProperty;return s(o,"next",{value:verb(0)}),s(o,"throw",{value:verb(1)}),s(o,"return",{value:verb(2)}),"function"==typeof Symbol&&s(o,Symbol.iterator,{value:function(){return this}}),o;function verb(e){return function(t){return step([e,t])}}function step(s){if(r)throw TypeError("Generator is already executing.");for(;o&&(o=0,s[0]&&(n=0)),n;)try{if(r=1,a&&(i=2&s[0]?a.return:s[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,s[1])).done)return i;switch(a=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return n.label++,{value:s[1],done:!1};case 5:n.label++,a=s[1],s=[0];continue;case 7:s=n.ops.pop(),n.trys.pop();continue;default:if(!(i=(i=n.trys).length>0&&i[i.length-1])&&(6===s[0]||2===s[0])){n=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){n.label=s[1];break}if(6===s[0]&&n.label<i[1]){n.label=i[1],i=s;break}if(i&&n.label<i[2]){n.label=i[2],n.ops.push(s);break}i[2]&&n.ops.pop(),n.trys.pop();continue}s=t.call(e,n)}catch(e){s=[6,e],a=0}finally{r=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}}function $getRoots(){return document.querySelectorAll(".js-design-project-carousel")}function getMode(e){return e.getAttribute("data-carousel-mode")||"project"}function getCarouselId(e){return e.getAttribute("data-carousel-id")||""}function getData(e){var t=e.getAttribute("data-project");return t?(0,o.Tm)(JSON.parse(t)):null}function getImageUrls(e){var t=e.getAttribute("data-carousel-images");return t?JSON.parse(t):[]}function createPreviewElement(e){var t=document.createElement("div");return t.className="design-project-carousel__preview relative size-full",e.forEach(function(e,r){var a=document.createElement("img"),i=URL.createObjectURL(e.blob);if(a.src=i,a.className="design-project-carousel__preview-image size-full object-contain",a.onload=function(){URL.revokeObjectURL(i)},r>0){var n=document.createElement("div");n.className="bg-background lg:w-15 lg:h-15 absolute bottom-[-1px] left-[50%] h-10 w-10 rounded border border-gray-200",n.appendChild(a),t.appendChild(n)}else t.appendChild(a)}),t}function addImgixQuality(e,t){var r=new URL(e);return r.searchParams.set("q",String(t)),r.toString()}function generateItemPreview(e){return _async_to_generator(function(){return _ts_generator(this,function(t){switch(t.label){case 0:return[4,Promise.all(Object.values(e).map(function(e){return(0,s.y)({imageUrl:addImgixQuality(e.imageUrl,50),artworkSize:{width:e.width,height:e.height},surface:_object_spread_props(_object_spread({},e.surface),{picture:addImgixQuality(e.surface.picture,50)})})}))];case 1:return[2,t.sent()]}})})()}function createImageSlide(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=document.createElement("div");
1r.className="design-project-carousel__preview relative size-full";var a=document.createElement("img");return a.src=e,a.alt=t,a.className="design-project-carousel__preview-image size-full object-contain",a.loading="lazy",r.appendChild(a),r}function initFlickityFor(e){var t=getCarouselId(e);new n.A('[data-carousel-id="'.concat(t,'"]'),{pageDots:!1,wrapAround:!0,fade:!0},{library:i()}).initFlickity()}function renderProjectPreviews(e){return _async_to_generator(function(){var t;return _ts_generator(this,function(r){switch(r.label){case 0:if(!(t=getData(e)))return[2];return[4,Promise.all(t.compositions.map(generateItemPreview))];case 1:return r.sent().forEach(function(t){var r=createPreviewElement(t);e.appendChild(r)}),initFlickityFor(e),[2]}})})()}function renderImagePreviews(e){var t=getImageUrls(e);t.length&&(t.forEach(function(t){e.appendChild(createImageSlide(t))}),initFlickityFor(e))}function renderCarousel(e){"images"===getMode(e)?renderImagePreviews(e):renderProjectPreviews(e)}var u="[data-saved-project-add-to-cart]";function initSavedProjectTracking(){(0,_.on)("click",u,function(e){var t=e.target.closest(u);if(t){var r=JSON.parse(t.dataset.savedProjectAddToCart||"{}");(0,l.u4)(r.eventName,{eventCategory:r.eventCategory,page_location:r.pageLocation,business_line:r.businessLine,section_identifier:r.sectionIdentifier,project_uuid:r.projectUuid,project_name:r.projectName}),(0,c.IH)({genericEvent:!0,eventCategory:r.eventCategory,event:r.eventAction,page_location:r.pageLocation,business_line:r.businessLine,section_identifier:r.sectionIdentifier})}})}function init(){var e=$getRoots();e.length&&(e.forEach(function(e){renderCarousel(e)}),initSavedProjectTracking())}},464932(e,t,r){r.d(t,{D:()=>a,Y:()=>i});var a={width:600,fit:"max",auto:"format,compress",quality:70},i={maxWidth:3072,capWidth:600,zoomHeadroom:1.25,dprCap:3,ssrFallbackWidth:2048,fit:"max",auto:"format,compress",quality:75}},927997(e,t,r){r.d(t,{Rr:()=>withoutImgixAutoFormat,XR:()=>artworkImgixModalUrl,lt:()=>remoteImageStaticUrl,s4:()=>artworkImgixThumbnailUrl});var a=r(628148);function _array_like_to_array(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,a=Array(t);r<t;r++)a[r]=e[r];return a}function _array_with_holes(e){if(Array.isArray(e))return e}function _iterable_to_array_limit(e,t){var r,a,i=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var n=[],o=!0,s=!1;try{for(i=i.call(e);!(o=(r=i.next()).done)&&(n.push(r.value),!t||n.length!==t);o=!0);}catch(e){s=!0,a=e}finally{try{o||null==i.return||i.return()}finally{if(s)throw a}}return n}}function _non_iterable_rest(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _sliced_to_array(e,t){return _array_with_holes(e)||_iterable_to_array_limit(e,t)||_unsupported_iterable_to_array(e,t)||_non_iterable_rest()}function _unsupported_iterable_to_array(e,t){if(e){if("string"==typeof e)return _array_like_to_array(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return _array_like_to_array(e,t)}}function buildQueryString(e){var t=new URLSearchParams;Object.entries(e).forEach(function(e){var r=_sliced_to_array(e,2),a=r[0],i=r[1];null!=i&&t.append(a,String(i))});var r=t.toString();return r?"?".concat(r):""}function buildImgixParams(e,t){var r,a,i;return{w:String(e),fit:null!=(r=t.fit)?r:"max",auto:null!=(a=t.auto)?a:"format,compress",q:String(null!=(i=t.quality)?i:75)}}function remoteImageStaticUrl(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)return"";var a=null==(t=window.jiffy)?void 0:t.remoteImageHost,i=e.startsWith("/")?e.slice(1):e,n=buildQueryString(r);return"".concat(a,"/").concat(i).concat(n)}function isInlineOrBlobUrl(e){return e.startsWith("data:")||e.startsWith("blob:")}function artworkImgixThumbnailUrl(e,t){return!e||"string"!=typeof e||isInlineOrBlobUrl(e)?e:(0,a.A)(e,buildImgixParams(t.width,t))}var i=/(^|\.)imgix\.net$/i;function withoutImgixAutoFormat(e){if(!e||"string"!=typeof e||isInlineOrBlobUrl(e)||!/^https?:\/\//i.test(e))return e;try{var t=new URL(e);if(!i.test(t.hostname)||t.searchParams.has("s")||!t.searchParams.has("auto"))return e;return t.searchParams.delete("auto"),t.toString()}catch(t){return console.warn("Failed to parse URL:",e,t),e}}function artworkModalTargetWidth(e){return"u"<typeof window?e.ssrFallbackWidth:Math.min(Math.ceil(Math.min(window.innerWidth,e.capWidth)*Math.min(window.devicePixelRatio||1,e.dprCap)*e.zoomHeadroom),e.maxWidth)}function artworkImgixModalUrl(e,t){if(!e||"string"!=typeof e||isInlineOrBlobUrl(e))return e;var r=Math.min(artworkModalTargetWidth(t),t.maxWidth);return(0,a.A)(e,buildImgixParams(r,t))}},628148(e,t,r){function _array_like_to_array(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,a=Array(t);r<t;r++)a[r]=e[r];return a}function _array_with_holes(e){if(Array.isArray(e))return e}function _iterable_to_array_limit(e,t){var r,a,i=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var n=[],o=!0,s=!1;try{for(i=i.call(e);!(o=(r=i.next()).done)&&(n.push(r.value),!t||n.length!==t);o=!0);}catch(e){s=!0,a=e}finally{try{o||null==i.return||i.return()}finally{if(s)throw a}}return n}}function _non_iterable_rest(){throw TypeError("Invalid attempt to de
1structure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _sliced_to_array(e,t){return _array_with_holes(e)||_iterable_to_array_limit(e,t)||_unsupported_iterable_to_array(e,t)||_non_iterable_rest()}function _unsupported_iterable_to_array(e,t){if(e){if("string"==typeof e)return _array_like_to_array(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return _array_like_to_array(e,t)}}r.d(t,{A:()=>__rspack_default_export});let __rspack_default_export=function(e,t){if(!e||"string"!=typeof e||!t||0===Object.keys(t).length)return e;try{var r=/^https?:\/\//.test(e),a=r?new URL(e):new URL(e,window.location.origin);if(Object.entries(t).forEach(function(e){var t=_sliced_to_array(e,2),r=t[0],i=t[1];null!=i&&a.searchParams.set(r,String(i))}),r)return a.toString();var i=a.pathname+a.search+a.hash;return e.startsWith("/")?i:i.replace(/^\//,"")}catch(t){return console.warn("Failed to parse URL:",e,t),e}}},490555(e,t,r){r.d(t,{y:()=>generatePreview});var a=r(464932),i=r(927997),n=r(77409),o=r(693080);function _array_like_to_array(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,a=Array(t);r<t;r++)a[r]=e[r];return a}function _array_with_holes(e){if(Array.isArray(e))return e}function asyncGeneratorStep(e,t,r,a,i,n,o){try{var s=e[n](o),l=s.value}catch(e){r(e);return}s.done?t(l):Promise.resolve(l).then(a,i)}function _async_to_generator(e){return function(){var t=this,r=arguments;return new Promise(function(a,i){var n=e.apply(t,r);function _next(e){asyncGeneratorStep(n,a,i,_next,_throw,"next",e)}function _throw(e){asyncGeneratorStep(n,a,i,_next,_throw,"throw",e)}_next(void 0)})}}function _iterable_to_array_limit(e,t){var r,a,i=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var n=[],o=!0,s=!1;try{for(i=i.call(e);!(o=(r=i.next()).done)&&(n.push(r.value),!t||n.length!==t);o=!0);}catch(e){s=!0,a=e}finally{try{o||null==i.return||i.return()}finally{if(s)throw a}}return n}}function _non_iterable_rest(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _sliced_to_array(e,t){return _array_with_holes(e)||_iterable_to_array_limit(e,t)||_unsupported_iterable_to_array(e,t)||_non_iterable_rest()}function _unsupported_iterable_to_array(e,t){if(e){if("string"==typeof e)return _array_like_to_array(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return _array_like_to_array(e,t)}}function _ts_generator(e,t){var r,a,i,n={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},o=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),s=Object.defineProperty;return s(o,"next",{value:verb(0)}),s(o,"throw",{value:verb(1)}),s(o,"return",{value:verb(2)}),"function"==typeof Symbol&&s(o,Symbol.iterator,{value:function(){return this}}),o;function verb(e){return function(t){return step([e,t])}}function step(s){if(r)throw TypeError("Generator is already executing.");for(;o&&(o=0,s[0]&&(n=0)),n;)try{if(r=1,a&&(i=2&s[0]?a.return:s[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,s[1])).done)return i;switch(a=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return n.label++,{value:s[1],done:!1};case 5:n.label++,a=s[1],s=[0];continue;case 7:s=n.ops.pop(),n.trys.pop();continue;default:if(!(i=(i=n.trys).length>0&&i[i.length-1])&&(6===s[0]||2===s[0])){n=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){n.label=s[1];break}if(6===s[0]&&n.label<i[1]){n.label=i[1],i=s;break}if(i&&n.label<i[2]){n.label=i[2],n.ops.push(s);break}i[2]&&n.ops.pop(),n.trys.pop();continue}s=t.call(e,n)}catch(e){s=[6,e],a=0}finally{r=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}}function artworkUrlForPreview(e){var t;return!e||"string"!=typeof e||e.startsWith("data:")||e.startsWith("blob:")?e:null!=(t=(0,i.s4)(e,a.D))?t:e}function loadImage(e){return new Promise(function(t,r){var a=new window.Image;a.crossOrigin="anonymous",a.onload=function(){return t(a)},a.onerror=function(){return r(Error("Failed to load image: ".concat(e)))},a.src=e})}function renderImage(e){var t,r,a=e.canvas,i=e.surfaceImage,n=e.fileImage,s=e.artworkSize,l=e.surface,c=a.getContext("2d");if(!c||(c.clearRect(0,0,a.width,a.height),!(0,o.L)({ctx:c,source:i,site:"generatePreview.surface",args:[0,0,a.width,a.height]})))return!1;var _=l.boundingBox,u=_.left,d=_.top,f=_.width,p=_.height,h=n.naturalWi
1dth,v=n.naturalHeight;s&&l.ppi?(t=s.width*l.ppi,r=s.height*l.ppi):(t=h,r=v);var y=Math.min(t/h,r/v),g=h*y,m=v*y,w=Math.min(f/g,p/m,1);g*=w,m*=w;var b=u+(f-g)/2;return(0,o.L)({ctx:c,source:n,site:"generatePreview.artwork",args:[b,d,g,m]})}function generatePreview(e){return _async_to_generator(function(){var t,r,a,i,s,l,c,_,u,d,f,p;return _ts_generator(this,function(h){switch(h.label){case 0:return t=e.imageUrl,r=e.artworkSize,a=e.surface,i=artworkUrlForPreview(t),[4,Promise.all([loadImage(a.picture),loadImage(i)])];case 1:if(l=(s=_sliced_to_array.apply(void 0,[h.sent(),2]))[0],c=s[1],(_=(0,o.x)(l)).width<=0||_.height<=0)throw(0,n.w)({reason:"zero_dimensions",site:"generatePreview.surface",sourceWidth:_.width,sourceHeight:_.height}),Error("Failed to generate preview: surface image has zero dimensions");if((u=(0,o.x)(c)).width<=0||u.height<=0)throw(0,n.w)({reason:"zero_dimensions",site:"generatePreview.artwork",sourceWidth:u.width,sourceHeight:u.height}),Error("Failed to generate preview: artwork image has zero dimensions");if((d=document.createElement("canvas")).width=l.naturalWidth,d.height=l.naturalHeight,!renderImage({canvas:d,surfaceImage:l,fileImage:c,artworkSize:r,surface:a}))throw Error("generatePreview: renderImage failed");return f=d.toDataURL("image/png"),[4,new Promise(function(e,t){d.toBlob(function(r){r?e(r):t(Error("Failed to generate preview"))},"image/png")})];case 2:return p=h.sent(),d.width=0,d.height=0,[2,{blob:p,base64:f}]}})})()}},77409(e,t,r){r.d(t,{w:()=>trackCompositeRenderFailed});var a=r(260166),trackCompositeRenderFailed=function(e){var t,r,i;(0,a.u4)("design_lab_composite_render_failed",{reason:e.reason,site:e.site,source_width:null!=(t=e.sourceWidth)?t:null,source_height:null!=(r=e.sourceHeight)?r:null,error_message:null!=(i=e.errorMessage)?i:null,timestamp:Date.now()})}},260166(e,t,r){r.d(t,{IH:()=>a.IH,Zm:()=>i.Zm,u4:()=>track,yl:()=>i.u4});var a=r(160241),i=r(213896),track=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,i.u4)(e,t,!0)}},693080(e,t,r){r.d(t,{L:()=>safeDrawImage,x:()=>getDrawSourceDimensions});var a=r(586519),i=r(77409);function _instanceof(e,t){return null!=t&&"u">typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}var getDrawSourceDimensions=function(e){return _instanceof(e,HTMLImageElement)?{width:e.naturalWidth,height:e.naturalHeight}:{width:e.width,height:e.height}},safeDrawImage=function(e){var t=e.ctx,r=e.source,n=e.site,o=e.args,s=void 0===o?[0,0]:o,l=getDrawSourceDimensions(r),c=l.width,_=l.height;if(c<=0||_<=0)return(0,i.w)({reason:"zero_dimensions",site:n,sourceWidth:c,sourceHeight:_}),!1;try{return 2===s.length?t.drawImage(r,s[0],s[1]):4===s.length?t.drawImage(r,s[0],s[1],s[2],s[3]):t.drawImage(r,s[0],s[1],s[2],s[3],s[4],s[5],s[6],s[7]),!0}catch(e){var u,d=_instanceof(e,Error)?e.message:String(e),f=_instanceof(e,Error)&&"SecurityError"===e.name,p=d.toLowerCase().includes("tainted"),h=f||p?"cors_taint":"draw_threw";return(0,i.w)({reason:h,site:n,sourceWidth:c,sourceHeight:_}),(0,a.notifyError)("safeDrawImage drawImage threw",{params:{site:n,reason:h,source_width:c,source_height:_,error_message:d,stack_trace:_instanceof(e,Error)&&null!=(u=e.stack)?u:null}}),!1}}},661518(e,t,r){r.r(t),r.d(t,{UserSectionsCarouselClass:()=>d,default:()=>__rspack_default_export});var a=r(855161),i=r.n(a),n=r(408346),o=r(363070);function _check_private_redeclaration(e,t){if(t.has(e))throw TypeError("Cannot initialize the same private elements twice on an object")}function _class_apply_descriptor_get(e,t){return t.get?t.get.call(e):t.value}function _class_apply_descriptor_set(e,t,r){if(t.set)t.set.call(e,r);else{if(!t.writable)throw TypeError("attempted to set read only private field");t.value=r}}function _class_call_check(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function _class_extract_field_descriptor(e,t,r){if(!t.has(e))throw TypeError("attempted to "+r+" private field on non-instance");return t.get(e)}function _class_private_field_get(e,t){var r=_class_extract_field_descriptor(e,t,"get");return _class_apply_descriptor_get(e,r)}function _class_private_field_init(e,t,r){_check_private_redeclaration(e,t),t.set(e,r)}function _class_private_field_set(e,t,r){var a=_class_extract_field_descriptor(e,t,"set");return _class_apply_descriptor_set(e,a,r),r}function _class_private_method_get(e,t,r){if(!t.has(e))throw TypeError("attempted to get private field on non-instance");return r}function _class_private_method_init(e,t){_check_private_redeclaration(e,t),t.add(e)}function _defineProperties(e,t){for(var r=0;r<t.length;r++){var a=t[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function _create_class(e,t,r){return t&&_defineProperties(e.prototype,t),r&&_defineProperties(e,r),e}var s=new WeakMap,l=new WeakMap,c=new WeakMap,_=new WeakMap,u=new WeakSet,d=function(){function UserSectionsCarouselClass(){_class_call_check(this,UserSectionsCarouselClass),_class_private_method_init(this,u),_class_private_field_init(this,s,{writable:!0,value:{cellAlign:"left",contain:!0,wrapAround:!0,prevNextButtons:!0,pageDots:!1,adaptiveHeight:!1,imagesLoaded:!1,resize:!1}}),_class_private_field_init(this,l,{writable:!0,value:void 0}),_class_private_field_init(this,c,{writable:!0,value:null}),_class_private_field_init(this,_,{writable:!0,value:null}),_class_private_field_set(this,l,(0,o.A)())}return _create_class(UserSectionsCarouselClass,[{key:"destroy",value:function(){_class_private_field_get(this,c)&&(_class_private_field_get(this,c).destroy(),_class_private_field_set(this,c,null)),_class_private_field_get(this,_)&&(_class_private_field_get(this,_).destroy(),_class_private_field_set(this,_,null))}},{key:"init",value:function(){this.initFavorites(),this.initOrderedItems(),_class_private_field_get(this,l).init()}},{key:"initFavorites",value:function(){if(_class_private_field_get(this,c)){try{var e=_class_private_field_get(this,c).element;if(e&&document.contains(e))return}catch(e){}_class_private_field_get(this,c).destroy(),_class_private_field_set(this,c,null)}_class_private_field_set(this,c,_class_private_method_get(this,u,initCarousel).call(this,".js-favorites-swiper","favorites"))}},{key:"initOrderedItems",value:function(){if(_class_private_field_get(this,_)){try{var e=_class_private_field_get(this,_).element;if(e&&document.contains(e))return}catch(e){}_class_private_field_get(this,_).destroy(),_class_private_field_set(this,_,null)}_class_private_field_set(this,_,_class_private_method_get(this,u,initCarousel).call(this,".js-ordered-items-swiper","ordered-items"))}},{key:"initDeliveryDates",value:function(){_class_private_field_get(this,l).init()}},{key:"favoritesFlickity",get:function(){return _class_private_field_get(this,c)}},{key:"orderedItemsFlickity",get:function(){return _class_private_field_get(this,_)}}]),UserSectionsCarouselClass}();function initCarousel(e,t){var r=document.querySelector(e);
1if(!r)return null;var a=new(i())(r,_class_private_field_get(this,s));return t&&_class_private_field_get(this,l).setupCarouselListeners(a,t),a}var f=new d;function __rspack_default_export(){return new d}window.userSectionsCarouselClass=f,window.initDesignProjectCarousel=n.T,document.addEventListener("DOMContentLoaded",function(){(0,n.T)(),f.init()})},363070(e,t,r){r.d(t,{A:()=>__rspack_default_export});var a=r(864188),i=r(961870);function _array_like_to_array(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,a=Array(t);r<t;r++)a[r]=e[r];return a}function _array_with_holes(e){if(Array.isArray(e))return e}function asyncGeneratorStep(e,t,r,a,i,n,o){try{var s=e[n](o),l=s.value}catch(e){r(e);return}s.done?t(l):Promise.resolve(l).then(a,i)}function _async_to_generator(e){return function(){var t=this,r=arguments;return new Promise(function(a,i){var n=e.apply(t,r);function _next(e){asyncGeneratorStep(n,a,i,_next,_throw,"next",e)}function _throw(e){asyncGeneratorStep(n,a,i,_next,_throw,"throw",e)}_next(void 0)})}}function _check_private_redeclaration(e,t){if(t.has(e))throw TypeError("Cannot initialize the same private elements twice on an object")}function _class_apply_descriptor_get(e,t){return t.get?t.get.call(e):t.value}function _class_apply_descriptor_set(e,t,r){if(t.set)t.set.call(e,r);else{if(!t.writable)throw TypeError("attempted to set read only private field");t.value=r}}function _class_call_check(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function _class_extract_field_descriptor(e,t,r){if(!t.has(e))throw TypeError("attempted to "+r+" private field on non-instance");return t.get(e)}function _class_private_field_get(e,t){var r=_class_extract_field_descriptor(e,t,"get");return _class_apply_descriptor_get(e,r)}function _class_private_field_init(e,t,r){_check_private_redeclaration(e,t),t.set(e,r)}function _class_private_field_set(e,t,r){var a=_class_extract_field_descriptor(e,t,"set");return _class_apply_descriptor_set(e,a,r),r}function _class_private_method_get(e,t,r){if(!t.has(e))throw TypeError("attempted to get private field on non-instance");return r}function _class_private_method_init(e,t){_check_private_redeclaration(e,t),t.add(e)}function _defineProperties(e,t){for(var r=0;r<t.length;r++){var a=t[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function _create_class(e,t,r){return t&&_defineProperties(e.prototype,t),r&&_defineProperties(e,r),e}function _define_property(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _iterable_to_array_limit(e,t){var r,a,i=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var n=[],o=!0,s=!1;try{for(i=i.call(e);!(o=(r=i.next()).done)&&(n.push(r.value),!t||n.length!==t);o=!0);}catch(e){s=!0,a=e}finally{try{o||null==i.return||i.return()}finally{if(s)throw a}}return n}}function _non_iterable_rest(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _sliced_to_array(e,t){return _array_with_holes(e)||_iterable_to_array_limit(e,t)||_unsupported_iterable_to_array(e,t)||_non_iterable_rest()}function _unsupported_iterable_to_array(e,t){if(e){if("string"==typeof e)return _array_like_to_array(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return _array_like_to_array(e,t)}}function _class_check_private_static_access(e,t){if(e!==t)throw TypeError("Private static access of wrong provenance")}function _ts_generator(e,t){var r,a,i,n={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},o=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),s=Object.defineProperty;return s(o,"next",{value:verb(0)}),s(o,"throw",{value:verb(1)}),s(o,"return",{value:verb(2)}),"function"==typeof Symbol&&s(o,Symbol.iterator,{value:function(){return this}}),o;function verb(e){return function(t){return step([e,t])}}function step(s){if(r)throw TypeError("Generator is already executing.");for(;o&&(o=0,s[0]&&(n=0)),n;)try{if(r=1,a&&(i=2&s[0]?a.return:s[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,s[1])).done)return i;switch(a=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return n.label++,{value:s[1],done:!1};case 5:n.label++,a=s[1],s=[0];continue;case 7:s=n.ops.pop(),n.trys.pop();continue;default:if(!(i=(i=n.trys).length>0&&i[i.length-1])&&(6===s[0]||2===s[0])){n=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){n.label=s[1];break}if(6===s[0]&&n.label<i[1]){n.label=i[1],i=s;break}if(i&&n.label<i[2]){n.label=i[2],n.ops.push(s);break}i[2]&&n.ops.pop(),n.trys.pop();continue}s=t.call(e,n)}catch(e){s=[6,e],a=0}finally{r=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}}var n=new WeakMap,o=new WeakMap,s=new WeakMap,l=new WeakMap,c=new WeakMap,_=new WeakMap,u=new WeakMap,d=new WeakMap,f=new WeakMap,p=new WeakMap,h=new WeakSet,v=new WeakSet,y=new WeakSet,g=new WeakSet,m=new WeakSet,w=new WeakSet,b=new WeakSet,k=new WeakSet,S=function(){function UserSectionsDeliveryDateClass(){_class_call_check(this,UserSectionsDeliveryDateClass),_class_private_field_init(this,f,{get:get_$favoritesContainer,set:void 0}),_class_private_field_init(this,p,{get:get_$orderedItemsContainer,set:void 0}),_class_private_method_init(this,h),_class_private_method_init(this,v),_class_private_method_init(this,y),_class_private_method_init(this,g),_class_private_method_init(this,m),_class_private_method_init(this,w),_class_private_method_init(this,b),_class_private_method_init(this,k),_class_private_field_init(this,n,{writable:!0,value:{}}),_class_private_field_init(this,o,{writable:!0,value:new i.A}),_class_private_field_init(this,s,{writable:!0,value:".js-favorites-swiper"}),_class_private_field_init(this,l,{writable:!0,value:".js-ordered-items-swiper"}),_class_private_field_init(this,c,{writable:!0,value:".js-saved-project-delivery"}),_class_private_field_init(this,_,{writable:!0,value:".js-delivery-date"}),_class_private_field_init(this,u,{writable:!0,value:".js-delivery-loading"}),_class_private_field_init(this,d,{writable:!0,value:".js-delivery-loaded"}),_class_private_method_get(this,b,initZipCodeListener).call(this)}return _create_class(UserSectionsDeliveryDateClass,[{key:"init",value:function(){_class_private_method_get(this,w,initSectionDeliveryDates).call(this,_class_private_field_get(this,s),!1),_class_private_method_get(this,w,initSectionDeliveryDates).call(this,_class_private_field_get(this,l),!0),_class_private_method_get(this,k,initSavedProjectDeliveryDate).call(this)}},{key:"setupSwiperListeners",value:function(e,t){var r=this,a="ordered-items"===t;e.on("slideChange",function(){var t=e.slides[e.activeIndex],i=null==t?void 0:t.querySelector("[data-composition-id]");i&&_class_private_method_get(r,m,fetchAndUpdateDeliveryDate).call(r,i,a)})}},{key:"setupCarouselListeners",value:function(e,t){var r=this,a="ordered-items"===t;e.on("change",function(t){var i,n=null==(i=e.cells[t])?void 0:i.element,o=null==n?void 0:n.querySelector("[data-composition-id]");o&&_class_private_method_get(r,m,fetchAndUpdateDeliveryDate).call(r,o,a)})}}]),UserSectionsDeliveryDateClass}();function get_$favoritesContainer(){return document.querySelector(_class_private_field_get(this,s))}function get_$orderedItemsContainer(){return document.querySelector(_class_private_field_get(this,l))}function getCacheKey(e,t){return"".concat(e,"_").concat(t?"made":"blank")}function getCachedDeliveryDate(e,t){var r,a=S.zipcode;if(!_class_private_field_get(this,n)[a])return null;var i=(r=getCacheKey,_class_check_private_static_access(S,S),r).call(S,e,t);return _class_private_field_get(this,n)[a][i]}
1function setCachedDeliveryDate(e,t,r){var a,i=S.zipcode;_class_private_field_get(this,n)[i]||(_class_private_field_get(this,n)[i]={});var o=(a=getCacheKey,_class_check_private_static_access(S,S),a).call(S,e,t);_class_private_field_get(this,n)[i][o]={date:r}}function clearCache(){var e=this;Object.keys(_class_private_field_get(this,n)).forEach(function(t){delete _class_private_field_get(e,n)[t]})}function updateDeliveryDateUI(e,t){var r=e.querySelector(_class_private_field_get(this,_));if(r){r.textContent=t;var a=e.querySelector(_class_private_field_get(this,u)),i=e.querySelector(_class_private_field_get(this,d));a&&a.classList.add("hidden"),i&&i.classList.remove("hidden")}}function fetchAndUpdateDeliveryDate(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return _async_to_generator(function(){var r,a,n,s,l,c;return _ts_generator(this,function(_){switch(_.label){case 0:if(!(r=e.dataset.compositionId))return[2];if(a=_class_private_method_get(this,h,getCachedDeliveryDate).call(this,r,t))return _class_private_method_get(this,g,updateDeliveryDateUI).call(this,e,a.date),[2];_.label=1;case 1:return _.trys.push([1,3,,4]),s=t&&i.A.shouldUseFastEta("Print"),[4,_class_private_field_get(this,o).fetch([r],{isMade:t,businessLine:t?"Print":void 0,isSendIndividually:!s})];case 2:return(null==(l=_sliced_to_array.apply(void 0,[_.sent(),1])[0])||null==(n=l.estimates)?void 0:n[r])&&(c=l.estimates[r].date,_class_private_method_get(this,v,setCachedDeliveryDate).call(this,r,t,c),_class_private_method_get(this,g,updateDeliveryDateUI).call(this,e,c)),[3,4];case 3:return _.sent(),[3,4];case 4:return[2]}})}).call(this)}function initSectionDeliveryDates(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=document.querySelector(e);if(r){var a=r.querySelector(".is-selected, .carousel-cell");if(a){var i=a.querySelector("[data-composition-id]");i&&_class_private_method_get(this,m,fetchAndUpdateDeliveryDate).call(this,i,t)}}}function initZipCodeListener(){var e=this;a.EventBus.on(a.Events.ZIPCODE_UPDATED,function(){_class_private_method_get(e,y,clearCache).call(e),_class_private_field_set(e,o,new i.A),e.init()})}function initSavedProjectDeliveryDate(){var e=document.querySelector(_class_private_field_get(this,c));if(e)try{var t=JSON.parse(e.dataset.projectData),r=null==t?void 0:t.active_composition_id;r&&(e.dataset.compositionId=r,_class_private_method_get(this,m,fetchAndUpdateDeliveryDate).call(this,e,!0))}catch(e){}}function __rspack_default_export(){return new S}_define_property(S,"zipcode","session")}}]);

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.