PageSourceSearch

https://www.pixartprinting.fr/js/init-initDesignArea-js.fc778ba1027e8f70744a.js

js pixartprinting.fr collected 2026-09-24 09:55:20 UTC 6,579 bytes, 1 lines download raw bytes

1export const __webpack_esm_id__=3579;export const __webpack_esm_ids__=[3579];export const __webpack_esm_modules__={14603(e,t,n){var o=n(36840),r=n(79504),a=n(655),i=n(22812),s=URLSearchParams,d=s.prototype,c=r(d.append),l=r(d.delete),u=r(d.forEach),m=r([].push),p=new s("a=1&a=2&b=3");p.delete("a",1),p.delete("b",void 0),p+""!="a=2"&&o(d,"delete",function(e){var t=arguments.length,n=t<2?void 0:arguments[1];if(t&&void 0===n)return l(this,e);var o=[];u(this,function(e,t){m(o,{key:t,value:e})}),i(t,1);for(var r,s=a(e),d=a(n),p=0,h=o.length;p<h;)l(this,(r=o[p]).key),p++;for(p=0;p<h;)(r=o[p++]).key===s&&r.value===d||c(this,r.key,r.value)},{enumerable:!0,unsafe:!0})},47566(e,t,n){var o=n(36840),r=n(79504),a=n(655),i=n(22812),s=URLSearchParams,d=s.prototype,c=r(d.getAll),l=r(d.has),u=new s("a=1");!u.has("a",2)&&u.has("a",void 0)||o(d,"has",function(e){var t=arguments.length,n=t<2?void 0:arguments[1];if(t&&void 0===n)return l(this,e);var o=c(this,e);i(t,1);for(var r=a(n),s=0;s<o.length;)if(o[s++]===r)return!0;return!1},{enumerable:!0,unsafe:!0})},66262(e,t){t.A=(e,t)=>{const n=e.__vccOpts||e;for(const[e,o]of t)n[e]=o;return n}},74629(e,t,n){n.d(t,{A:()=>c});var o=n(31963),r=n(49835),a=n(56887),i=n(85575);var s=n(49120),d=n(21956);const c=(e,t,n)=>{if(!e||!(0,s.A)(t))return;const c=n?.useStore??!0,l=n?.useCommonComponents??!0;c&&e.use(d.A),e.config.performance=!window.mstPrd,e.config.compilerOptions.whitespace="condense",e.use((0,a.n)({breadcrumb:!1,modalController:!1,modalManager:!0,rtl:!1,toast:!1,popover:!1})),l&&(e.component("b-modal",r.i),e.component("b-button",o.PF)),e.mount(t),(e=>{if(window.mstPrd)return;const t=window.__VUE_DEVTOOLS_GLOBAL_HOOK__;if(t){i.A.log("not development env - enabling vue devtools");const{version:n}=e;t.enabled=!0,t?.emit("app:init",e,n,{})}})(e)}},83576(e,t,n){n.d(t,{default:()=>h}),n.r(t);var o=n(41425),r=n(74629);n(44114),n(98992),n(3949),n(14603),n(47566),n(98721);var a=n(82124),i=n(85575),s=n(39030),d=n(7374);const c={id:"react-root",class:"d-flex w-100"};const l={name:"MountRemoteApp",props:{remoteMount:{type:Function,required:!0}},computed:{...(0,a.L8)("user",["userCustomerNumber"]),initAllowed(){return this.remoteMount&&"function"==typeof this.remoteMount&&""!==this.userCustomerNumber}},methods:{init(){const e=document?.documentElement?.lang||"en-US",t=document.getElementById("react-root"),n=window.anonToken,o=this.userCustomerNumber;this.remoteMount(t,{customerId:o,token:n,merchant:"pixartprinting",artworkTypes:["drafts","reviewedArtwork","brandKit"],language:e,theme:{colors:{cardBg:"#f5f5f5",textPrimary:"#000000",primaryColor:"#1174ba",secondaryColor:"#000000",primaryBackgroundColor:"#e7f1f8",contextMenuTriggerBgColor:"#e7f1f8",contextMenuTriggerTxtColor:"#1174ba",primaryBorderColor:"#e5e5e5",infoToastBackgroundColor:"#f5fbec",errorToastBackgroundColor:"#fcecec"},typography:{fontFamily:{primary:'"Montserrat", sans-serif',secondary:'"Open Sans", sans-serif'}}}})}},mounted(){if(this.initAllowed)this.init();else{const e=this.$watch("initAllowed",()=>{this.initAllowed&&(this.init(),e())})}}};var u=n(66262);const m={name:"DesignArea",components:{MountRemoteApp:(0,u.A)(l,[["render",function(e,t,n,r,a,i){return(0,o.uX)(),(0,o.CE)("div",c)}]])},data:()=>({remoteMount:null,ready:!1,eventBus:null,trackingEventsMap:{"mda.my
1DesignDraftsLibrary":{label:"MDA clicked drafts",action:"my_design_drafts_library"},"mda.myDesignPrintedLibrary":{label:"MDA clicked printed",action:"my_design_printed_library"},"mda.myDesignSeeAllLibrary":{label:"MDA clicked see all",action:"my_design_see_all_library"},"mda.myDesignInfo":{label:"MDA clicked info",action:"my_design_info"},"mda.myDesignOpenView":{label:"MDA clicked open view",action:"my_design_open_view"},"mda.myDesign3dView":{label:"MDA clicked open 3D view",action:"my_design_3d_view"},"mda.myDesignDeleteMyDesign":{label:"MDA clicked delete",action:"my_design_delete_mydesign"},"mda.openDexPage":{label:"MDA clicked edit",action:"my_design_edit_mydesign"}}}),methods:{isStringFilled:d.A,getShortUrl:e=>new Promise((t,n)=>{axios.post("/product/get-short-url/",e,{headers:{"Content-Type":"application/json"}}).then(e=>{200===e.status&&e.data.success?t(e.data.url):(i.A.error("dex page url failure",e.data),n(e.status))}).catch(e=>{i.A.error(e,"ajax ko",e),n(e)})}),async openDexPage(e,t,n){try{const o=await this.get
1ShortUrl(e),r=new URL(o);r.searchParams.append("docRefUrl",t),this.isStringFilled(n)&&r.searchParams.append("customName",n),window.location.href=r.href}catch(e){i.A.error(e)}},handleDexEvent(e){if(!e?.detail)return;const{attributes:t,quantity:n,productPageId:o,productionTime:r,selectedPriority:a,documentReferenceUrl:i,customName:s}=e.detail,d={path:this.dexFromProductLink,attributes:t,quantity:n,pageId:o,productionTime:r,deliveryOption:a,selectedArtworkBox:null};this.openDexPage(d,i,s)},openPersonAreaPage(){window.location.href=this.personalAreaLink},trackingEvents({label:e,action:t,productId:n}){const o=[{transport_type:"beacon"}];n&&o.push({product_id:String(n)}),(0,s.A)(e,"ga4_event",{action:t,additional_params:o})},handleProductEvent(e){if(!e?.detail)return;const{productPageId:t,productId:n,pageId:o}=e.detail;return t||n||o},bindTrackingEvents(){Object.keys(this.trackingEventsMap).forEach(e=>{this.eventBus.on(e,t=>{this.trackingEvents({...this.trackingEventsMap[e],productId:this.handleProductEvent(t)})})})},async initMicroFrontend(){const{default:e}=await n.e(5131).then(n.t.bind(n,85131,23)),{default:t,eventBus:o}=e;t&&o?(this.remoteMount=t,this.eventBus=o,this.eventBus.on("mda.openDexPage",this.handleDexEvent),this.eventBus.on("mda.openPersonAreaPage",this.openPersonAreaPage),this.ready=!0,this.bindTrackingEvents()):i.A.error("remote methods not found")}},computed:{...(0,a.L8)("links",["dexFromProductLink","personalAreaLink"])},mounted(){this.initMicroFrontend()},unmounted(){this.eventBus.off("mda.openDexPage",this.handleDexEvent),this.eventBus.off("mda.openPersonAreaPage",this.openPersonAreaPage),Object.keys(this.trackingEventsMap).forEach(e=>{this.eventBus.off(e)})}},p=(0,u.A)(m,[["render",function(e,t,n,r,a,i){const s=(0,o.g2)("mount-remote-app");return a.ready?((0,o.uX)(),(0,o.Wv)(s,{key:0,"remote-mount":a.remoteMount},null,8,["remote-mount"])):(0,o.Q3)("",!0)}],["__scopeId","data-v-3afb178a"]]),h=()=>{const e=(0,o.Ef)({components:{DesignArea:p}});(0,r.A)(e,"#design-area-app")}},98721(e,t,n){var o=n(43724),r=n(79504),a=n(62106),i=URLSearchParams.prototype,s=r(i.forEach);o&&!("size"in i)&&a(i,"size",{get:function(){var e=0;return s(this,function(){e++}),e},configurable:!0,enumerable:!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.