PageSourceSearch

https://touchnote.com/_next/static/chunks/pages/[locale]/[personalised_cards]/create-13ca9b2fbbedf500.js

js touchnote.com collected 2026-10-01 11:49:36 UTC 24,475 bytes, 1 lines download raw bytes

1try{!function(){var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="60302dba-0d3b-4cae-a21b-7dbadb81e00c",e._sentryDebugIdIdentifier="sentry-dbid-60302dba-0d3b-4cae-a21b-7dbadb81e00c")}()}catch(e){}(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7327],{5551:(e,t,r)=>{"use strict";r.d(t,{C:()=>a});var i=r(91576),s=r(41591),n=r(43715);let a=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{isMobileOrTablet:r}=(0,s.Ln)(),{locale:a}=(0,n.Y)(),o=(0,i.O2)("front"===e?"/personalised-cards/create/front":"/personalised-cards/create/message/",a),d=new URLSearchParams;return t.themeId&&d.set("themeId",t.themeId),t.productHandle&&d.set("productHandle",t.productHandle),t.presetUserImageURL&&d.set("presetUserImageURL",t.presetUserImageURL),t.recipientAddressIds&&d.set("recipientAddressIds",t.recipientAddressIds.join(",")),t.giftId&&d.set("giftId",t.giftId),t.cardPackQuantity&&"CP"===t.productHandle&&d.set("cardPackQuantity","".concat(t.cardPackQuantity)),t.pdpCreditUpsellBundleId&&d.set("pdpCreditUpsellBundleId",t.pdpCreditUpsellBundleId),{url:o+(d.toString()?"?".concat(d):""),isReady:null!==r}}},14965:(e,t,r)=>{"use strict";r.d(t,{$D:()=>o,Uw:()=>l,h9:()=>a});var i=r(19596),s=r(86189),n=r(65534);let a=24,o=(e,t)=>(0,n.Em)(e,{path:"content/themes",method:"GET",apiVersion:"v1",query:t}),d=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:a,i=e.themes.length;if(0!==i&&i%r==0)return t+1},l=e=>{let{isEnabled:t,tags:r,startPage:n}=e,{ctx:l}=(0,s._8)();return t=t&&!!l,(0,i.q)({queryKey:["themes",r,l],queryFn:e=>{let{pageParam:t}=e;return o(l,{tags:r,limit:a,offset:(t-1)*a,ignorePagination:!1,searchCondition:"AND"})},getNextPageParam:(e,t,r)=>d(e,r),enabled:t,initialPageParam:n})}},19596:(e,t,r)=>{"use strict";r.d(t,{q:()=>o});var i=r(13478),s=r(61482),n=class extends i.${constructor(e,t){super(e,t)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(e){super.setOptions({...e,behavior:(0,s.PL)()})}getOptimisticResult(e){return e.behavior=(0,s.PL)(),super.getOptimisticResult(e)}fetchNextPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"forward"}}})}fetchPreviousPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"backward"}}})}createResult(e,t){let{state:r}=e,i=super.createResult(e,t),{isFetching:n,isRefetching:a,isError:o,isRefetchError:d}=i,l=r.fetchMeta?.fetchMore?.direction,c=o&&"forward"===l,u=n&&"forward"===l,p=o&&"backward"===l,f=n&&"backward"===l;return{...i,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:(0,s.rB)(t,r.data),hasPreviousPage:(0,s.RQ)(t,r.data),isFetchNextPageError:c,isFetchingNextPage:u,isFetchPreviousPageError:p,isFetchingPreviousPage:f,isRefetchError:d&&!c&&!p,isRefetching:a&&!u&&!f}}},a=r(23836);function o(e,t){return(0,a.t)(e,n,t)}},24046:(e,t,r)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/[locale]/[personalised_cards]/create",function(){return r(27144)}])},24295:(e,t,r)=>{"use strict";r.d(t,{J:()=>o});var i=r(64609),s=r(78258),n=r(48936),a=r(41591);let o=()=>{let{isMobileOrTablet:e}=(0,a.Ln)(),[t,r,o]=(0,s.M)("editorDrafts"),[d,,l]=(0,n.F)("activeDraftId");return{editorDraft:(()=>{if(t.length&&d){var e;return null!=(e=t.find(e=>{let{draftID:t}=e;return t===d}))?e:null}return null})(),setEditorDraft:e=>{r(t=>{var r;let s="function"==typeof e?e(null!=(r=t.find(e=>e.draftID===d))?r:null):e;return s?(0,i.jM)(t,e=>{let t=e.findIndex(e=>{let{draftID:t}=e;return t===s.draftID});-1===t?e.push(s):e[t]=s}):t})},isLoadingEditorDraft:o||l||null===e}}},27144:(e,t,r)=>{"use strict";r.r(t),r.d(t,{__N_SSG:()=>j,default:()=>E});var i=r(37876),s=r(69609),n=r.n(s),a=r(18334),o=r(74359),d=r(64609),l=r(41228),c=r.n(l),u=r(14232),p=r(60603),f=r(6926),h=r(34064),m=r(91576),g=r(1461),_=r(86189),v=r(18271),y=r(24295),k=r(34704),S=r(41591),b=r(64400),I=r(43715),x=r(85013),w=r(2330),C=r(72145),R=r(54773),F=r(76708),L=r(1319),A=r(5551),U=r(28670),D=r.n(U);let P=c()(()=>Promise.all([r.e(35),r.e(683),r.e(9313),r.e(1768),r.e(313),r.e(7197)]).then(r.bind(r,19863)),{loadableGenerated:{webpack:()=>[19863]},ssr:!1});var j=!0;let E=()=>{let{editorDraft:e,setEditorDraft:t,isLoadingEditorDraft:r}=(0,y.J)(),s=(0,w.r)(),{ctx:l}=(0,_._8)(),{locale:c}=(0,I.Y)(),{trackEvent:U}=(0,C.z1)("productFrontViewed");(0,b.x)();let{value:j,isLoading:E}=(0,x.p)("themeId","string"),N=null!=j?j:F.G,{value:O,isLoading:z}=(0,x.p)("cardPackQuantity","number"),{value:T,isLoading:M}=(0,x.p)("pdpCreditUpsellBundleId","string"),{value:q,isLoading:H}=(0,x.p)("productHandle","string"),B="CP"===q?"GC":q,J=Object.keys(R.r).includes(B)?B:"PC",{value:Q,isLoading:W}=(0,x.p)("recipientAddressIds","string[]"),{value:G,isLoading:V}=(0,x.p)("presetUserImageURL","string"),Y=(0,k.Q)(),K=e?Y[e.productHandle][c]:null,{data:X}=(0,o.I)({queryKey:["themeAndIllustrations",N,l],queryFn:()=>(0,f.YR)(l,N),enabled:!!l&&s.isReady}),{value:$,isLoading:Z}=(0,x.p)("giftId","string"),{isMobileOrTablet:ee}=(0,S.Ln)();(0,u.useEffect)(()=>{null!==ee&&s.replace((0,m.O2)("/personalised-cards/create/front",c))},[ee,c,s]);let et=(0,u.useRef)(!1);(0,u.useEffect)(()=>{et.current||H||E||r||W||V||Z||z||M||!q&&!j&&!Q&&e||!X||(et.current=!0,t((0,f.No)({theme:X.theme,illustrations:X.illustrations,productHandle:J,orientation:"portrait",recipientAddressIds:null!=Q?Q:void 0,cardFrontImage:null!=G?G:void 0,giftId:null!=$?$:void 0,isCardPack:"CP"===q,cardPackQuantity:null!=O?O:void 0,pdpCreditUpsellBundleId:null!=T?T:void 0})),s.replace({pathname:window.location.pathname,query:{}}))},[H,E,r,V,Z,z,M,O,T,q,j,G,X,e,$]),(0,u.useEffect)(()=>{(null==e?void 0:e.productHandle)&&U("productFrontViewed",{productHandle:e.productHandle})},[null==e?void 0:e.productHandle]);let{url:er}=(0,A.C)("message");return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(n(),{id:"91835dfb0f3a97ac",children:"html,body{overscroll-behavior:none}"}),(0,i.jsx)(v.G,{title:(0,L.bh)(c,["Create a card"]),"data-sentry-element":"Seo","data-sentry-source-file":"index.page.tsx"}),(0,i.jsx)(h.E,{title:K?K.displayName:"","data-sentry-element":"FullScreenDialog","data-sentry-source-file":"index.page.tsx",children:e&&K?(0,i.jsx)(P,{editorDraft:e,dispatchEditorDraft:e=>{t(t=>(0,d.jM)(t,t=>{if(!t)return void(0,a.wd)("No editor draft available to set state from","warning");(0,p.p)(t,e)}))},onComplete:()=>{U("productFrontNextTapped",{productHandle:e.productHandle}),s.push(er)},cardProduct:K}):(0,i.jsx)("div",{className:"jsx-91835dfb0f3a97ac "+(D().loaderContainer||""),children:(0,i.jsx)(g.a,{})})})]})}},34064:(e,t,r)=>{"use strict";r.d(t,{E:()=>l});var i=r(37876),s=r(79619),n=r(2330),a=r(11079),o=r(71423),d=r.n(o);let l=e=>{let{title:t,children:r,showBackButton:o=!0,onBackButtonClick:l,className:c}=e,u=(0,n.r)();return(0,i.jsxs)("div",{className:(0,a.lM)(d().container,c),"data-sentry-component":"FullScreenDialog","data-sentry-source-file":"full-screen-dialog.tsx",children:[(0,i.jsx)(s.Y,{showBottomBorder:!0,leftContainer:o&&(0,i.jsx)("button",{onClick:null!=l?l:()=>u.back(),type:"button",children:(0,i.jsx)("img",{src:"/assets/icons/chevron-left.svg",alt:"Back button",width:10,height:18})}),centerContainer:"string"==typeof t?(0,i.jsx)("h1",{className:d().title,children:t}):t,"data-sentry-element":"Header","data-sentry-source-file":"full-screen-dialog.tsx"}),(0,i.jsx)("main",{className:d().mainContainer,children:r})]})}},34704:(e,t,r)=>{"use strict";r.d(t,{Q:()=>s});var i=r(54773);let s=()=>i.t},60603:(e,t,r)=>{"use strict";r.d(t,{p:()=>o});var i=r(79801),s=r(87669),n=r(59144),a=r(6926);let o=(e,t)=>{var r,o,d;switch(t.type){case"switch_product_type":e.productHandle=t.productType;break;case"set_rendered_image":e.renderedImageURL=t.imageUrl;break;case"set_rendered_image_thumbnail":e.renderedImageThumbnailURL=t.imageUrl;break;case"toggle_orientation":e.orientation="portrait"===e.orientation?"landscape":"portrait";break;case"set_stamp":e.stampUrl=t.stampUrl;break;case"set_map":e.map=t.map;break;case"set_order_message":{let r=e.recipients.find(e=>e.recipientAddressId===t.recipientAddressId);if(!r)return;r.messages[t.index]=t.orderMessage,r.renderedMessageUrl=void 0;break}case"switch_text_layout":{e.textLayoutHandle=t.textLayoutHandle;let i=(0,s.T5)(t.textLayoutHandle),n=null!=(r=i.textFields.findIndex(e=>"main"===e.type))?r:0,o=i.textFields[n];if(!o)return;
1e.fontAlignment=o.horizontalAlign,e.recipients.forEach(e=>{let r=(0,a.xK)(e.messages);if(r){e.messages=i.textFields.map(()=>""),e.messages[n]=r;return}e.messages=i.textFields.map(r=>{switch(r.type){case"greeting":return"Dear";case"recipient":var i,s,n;return null!=(n=null==(s=t.addresses.find(t=>t.addressId===e.recipientAddressId))||null==(i=s.firstName)?void 0:i.split(" ")[0])?n:"";case"sender":return"From ".concat(t.sender);default:return""}})});break}case"set_font_id":e.fontId=t.fontId,(0,i.p)(t.fontId).supportedWeights.some(t=>t===e.fontWeight)||(e.fontWeight=400);break;case"set_font_weight":e.fontWeight=t.fontWeight;break;case"set_font_color":e.fontColor=t.fontColor;break;case"set_font_alignment":e.fontAlignment=t.fontAlignment;break;case"set_viewport_image":if(t.replaceUrlOnly){let r=e.imageData[t.index];if(!r||r.imageURL===t.imageUrl)return;if(void 0!==t.expectedOldUrl&&String(r.imageURL).trim()!==String(t.expectedOldUrl).trim())return;r.imageURL=t.imageUrl;break}if((null==(o=e.imageData[t.index])?void 0:o.imageURL)===t.imageUrl)return;e.imageData[t.index]=(0,a.jB)(t.imageUrl,!1,t.illustrationId);break;case"swap_viewports":{let r=e.imageData[t.viewportAIndex],i=e.imageData[t.viewportBIndex];e.imageData[t.viewportAIndex]=i,e.imageData[t.viewportBIndex]=r;break}case"set_viewport_image_position":{let r=e.imageData[t.index];if(!r)return;r.x=t.x,r.y=t.y;break}case"set_viewport_image_size":{let r=e.imageData[t.index];if(!r)return;r.width=t.width,r.height=t.height;break}case"increment_viewport_image_zoom":{let r=e.imageData[t.index],i=t.template.viewports[t.index];if(!r||!i)return;let s=r.zoom+t.zoomIncrement;r.zoom=Math.max(Math.min(s,2.5),1);break}case"rotate_image":{let r=e.imageData[t.index],i=t.template.viewports[t.index];if(!r||!i)return;let s=(r.rotate+t.rotate)%360;r.rotate=s;break}case"set_editor_template":e.templateHandle=t.template;break;case"set_message_image":{let r=e.recipients.find(e=>e.recipientAddressId===t.recipientAddressId);if(!r)throw Error("Unexpected");r.renderedMessageUrl=t.messageImageUrl;break}case"set_caption_text":e.captionText=t.captionText;break;case"remove_viewport_image":if(!e.imageData[t.index])return;e.imageData[t.index]=void 0,t.unlockFrontIfLocked&&e.lockFrontOfCard&&(e.lockFrontOfCard=!1);break;case"set_flow_metadata":e.flowMetadata=t.metadata;break;case"add_image_sticker":e.stickers.push({id:t.id,x:.5,y:.5,scale:1,rotation:0,type:"image_sticker",stickerUrl:t.stickerImageUrl,width:null,height:null,stickerId:t.stickerId});break;case"add_text_sticker":e.stickers.push({...n.En,id:t.id});break;case"set_text_sticker_text":{let r=e.stickers.find(e=>e.id===t.id);if(!r||"text_sticker"!==r.type)return;r.text=t.text;break}case"set_text_sticker_font_id":{let r=e.stickers.find(e=>e.id===t.id);if(!r||"text_sticker"!==r.type)return;r.fontId=t.fontId;break}case"set_text_sticker_color":{let r=e.stickers.find(e=>e.id===t.id);if(!r||"text_sticker"!==r.type)return;r.color=t.color;break}case"set_text_sticker_alignment":{let r=e.stickers.find(e=>e.id===t.id);if(!r||"text_sticker"!==r.type)return;r.fontAlignment=t.alignment;break}case"set_sticker_size":{let r=e.stickers.find(e=>e.id===t.id);if(!r)return;r.width=t.width,r.height=t.height;break}case"set_sticker_position":{let r=e.stickers.find(e=>e.id===t.id);if(!r)return;r.x=t.x,r.y=t.y;break}case"set_sticker_rotation":{let r=e.stickers.find(e=>e.id===t.id);if(!r)return;r.rotation=t.rotation;break}case"set_sticker_scale":{let r=e.stickers.find(e=>e.id===t.id);if(!r)return;r.scale=t.scale;break}case"remove_sticker":e.stickers=e.stickers.filter(e=>e.id!==t.id);break;case"remove_all_stickers":e.stickers=[];break;case"bring_sticker_to_top":{let r=e.stickers.findIndex(e=>e.id===t.id);if(r<0)return;let i=e.stickers.splice(r,1)[0];if(!i)return;e.stickers.push(i);break}case"set_order_ids":e.orderIds=(null!=(d=e.orderIds)?d:[]).concat(t.orderId);break;case"set_recipient_address_ids":{let r=e.recipients[0];if(!r)throw Error("Unexpected state");e.recipients=e.recipients.filter(e=>{var r;return t.recipientAddressIds.includes(null!=(r=e.recipientAddressId)?r:"")});let i=t.recipientAddressIds.filter(t=>!e.recipients.some(e=>e.recipientAddressId===t)),s=t.copyMessage?r.messages:[""];e.recipients.push(...i.map(e=>({messages:s,recipientAddressId:e,renderedMessageUrl:r.renderedMessageUrl,quantity:1})));let n=e.recipients[0];n?n.messages=r.messages:e.recipients[0]={...r,recipientAddressId:null};break}case"add_local_recipient":null!=e.localRecipients||(e.localRecipients=[]),e.localRecipients.push(t.recipient);break;
1case"replace_local_recipient_address_ids":e.recipients.forEach(e=>{let r=e.recipientAddressId;r&&t.addressIdsByLocalId[r]&&(e.recipientAddressId=t.addressIdsByLocalId[r])});break;case"clear_local_recipients":e.localRecipients=[];break;case"set_sts_quantity":e.stsQuantity=t.quantity;break;case"set_gift_id":e.giftId=t.giftId;break;case"set_pdp_credit_upsell_bundle_id":e.pdpCreditUpsellBundleId=t.bundleId;break;default:throw Error("Unknown action")}}},64400:(e,t,r)=>{"use strict";r.d(t,{x:()=>s});var i=r(14232);let s=()=>{(0,i.useEffect)(()=>{let e=e=>{e.preventDefault(),e.returnValue=null};return window.addEventListener("beforeunload",e),()=>window.removeEventListener("beforeunload",e)},[])}},69609:(e,t,r)=>{"use strict";e.exports=r(81632).style},71423:e=>{e.exports={container:"full-screen-dialog_container___Fom5",mainContainer:"full-screen-dialog_mainContainer__U5nkl",title:"full-screen-dialog_title__jCG58"}},72552:()=>{},78258:(e,t,r)=>{"use strict";r.d(t,{M:()=>l});var i=r(18334),s=r(14232),n=r(30335),a=r(59144),o=r(6872);let d=[()=>{let e=(0,o.wh)("editorDrafts").map(e=>{let t=e.recipientAddressIds;return 0===t.length&&t.push(void 0),e.recipients=t.map(t=>({messages:[e.orderMessage],recipientAddressId:t,renderedMessageUrl:e.renderedMessageURL})),e.textLayoutHandle="one-field",delete e.orderMessage,delete e.renderedMessageURL,delete e.recipientAddressIds,e});localStorage.setItem((0,o.Lq)("editorDrafts"),JSON.stringify(e))},()=>{let e=(0,o.wh)("editorDrafts").map(e=>{let t={...e};return t.flowMetadata.applyMessageToAllCards||(t.flowMetadata.applyMessageToAllCards=null),t});localStorage.setItem((0,o.Lq)("editorDrafts"),JSON.stringify(e))},()=>{let e=(0,o.wh)("editorDrafts").map(e=>{let t={...e};return void 0===t.sendToSelf&&(t.sendToSelf=null),t});localStorage.setItem((0,o.Lq)("editorDrafts"),JSON.stringify(e))},()=>{let e=(0,o.wh)("editorDrafts").map(e=>(delete e.sendToSelf,void 0===e.stsQuantity&&(e.stsQuantity=1),e));localStorage.setItem((0,o.Lq)("editorDrafts"),JSON.stringify(e))},()=>{let e=(0,o.wh)("editorDrafts").map(e=>(e.recipients.forEach(e=>{void 0===e.recipientAddressId&&(e.recipientAddressId=null),void 0===e.messages&&(e.messages=[""]),0===e.messages.length&&e.messages.push("")}),e));localStorage.setItem((0,o.Lq)("editorDrafts"),JSON.stringify(e))},()=>{let e=(0,o.wh)("editorDrafts").map(e=>(delete e.sendToSelf,void 0===e.fontWeight&&(e.fontWeight=a.lk.fontWeight),void 0===e.fontColor&&(e.fontColor=a.lk.fontColor),e));localStorage.setItem((0,o.Lq)("editorDrafts"),JSON.stringify(e))},()=>{let e=(0,o.wh)("editorDrafts").map(e=>(void 0===e.lockFrontOfCard&&(e.lockFrontOfCard=!1),e));localStorage.setItem((0,o.Lq)("editorDrafts"),JSON.stringify(e))},()=>{localStorage.removeItem("hasUsedStickersFeature"),localStorage.removeItem("hasUsedStampsFeature"),localStorage.removeItem("flowCountStickersTooltipLastViewed"),localStorage.removeItem("flowCountStampsTooltipLastViewed")},()=>{localStorage.removeItem((0,o.Lq)("showWebToAppExpOnHomePage"))}],l=e=>{let[t,r]=(0,s.useState)(!0),a=n.J[e],l=(0,s.useRef)(a),c=(0,s.useCallback)(t=>{let r=r=>{r.key===(0,o.Lq)(e)&&r.storageArea===window.localStorage&&t()};return window.addEventListener("storage",r),()=>{window.removeEventListener("storage",r)}},[e]),u=(0,s.useCallback)(()=>{t&&((()=>{var e,t;let r=(0,o.Lq)("version"),s=null!=(t=parseInt(null!=(e=localStorage.getItem(r))?e:"0",10))?t:0;if(d.length>s){try{d.slice(s).forEach(e=>e())}catch(e){(0,i.Cp)(e),localStorage.clear(),sessionStorage.clear()}localStorage.setItem(r,String(d.length))}})(),r(!1));let s=(0,o.wh)(e);return(0,o.vG)(l.current,s)?(l.current=s,s):l.current},[a,e,t]),p=(0,s.useCallback)(()=>a,[a]);return[(0,s.useSyncExternalStore)(c,u,p),t=>{((e,t)=>{let r=(0,o.Lq)(e),i=JSON.stringify(t);localStorage.setItem(r,i),window.dispatchEvent(new StorageEvent("storage",{key:(0,o.Lq)(e),storageArea:localStorage,newValue:i}))})(e,"function"==typeof t?t(u()):t)},t]}},81632:(e,t,r)=>{"use strict";var i=r(99742);r(72552);var s=r(14232),n=function(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}(s),a=void 0!==i&&i.env&&!0,o=function(e){return"[object String]"===Object.prototype.toString.call(e)},d=function(){function e(e){var t=void 0===e?{}:e,r=t.name,i=void 0===r?"stylesheet":r,s=t.optimizeForSpeed,n=void 0===s?a:s;l(o(i),"`name` must be a string"),this._name=i,this._deletedRulePlaceholder="#"+i+"-deleted-rule____{}",l("boolean"==typeof n,"`optimizeForSpeed` must be a boolean"),this._optimizeForSpeed=n,this._serverSheet=void 0,this._tags=[],this._injected=!1,this._rulesCount=0;var d=document.querySelector('meta[property="csp-nonce"]');this._nonce=d?d.getAttribute("content"):null}var t,r=e.prototype;return r.setOptimizeForSpeed=function(e){l("boolean"==typeof e,"`setOptimizeForSpeed` accepts a boolean"),l(0===this._rulesCount,"optimizeForSpeed cannot be when rules have already been inserted"),this.flush(),this._optimizeForSpeed=e,this.inject()},r.isOptimizeForSpeed=function(){return this._optimizeForSpeed},r.inject=function(){var e=this;if(l(!this._injected,"sheet already injected"),this._injected=!0,this._optimizeForSpeed){this._tags[0]=this.makeStyleTag(this._name),this._optimizeForSpeed="insertRule"in this.get
1Sheet(),this._optimizeForSpeed||(a||console.warn("StyleSheet: optimizeForSpeed mode not supported falling back to standard mode."),this.flush(),this._injected=!0);return}this._serverSheet={cssRules:[],insertRule:function(t,r){return"number"==typeof r?e._serverSheet.cssRules[r]={cssText:t}:e._serverSheet.cssRules.push({cssText:t}),r},deleteRule:function(t){e._serverSheet.cssRules[t]=null}}},r.getSheetForTag=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]},r.getSheet=function(){return this.getSheetForTag(this._tags[this._tags.length-1])},r.insertRule=function(e,t){if(l(o(e),"`insertRule` accepts only strings"),this._optimizeForSpeed){var r=this.getSheet();"number"!=typeof t&&(t=r.cssRules.length);try{r.insertRule(e,t)}catch(t){return a||console.warn("StyleSheet: illegal rule: \n\n"+e+"\n\nSee https://stackoverflow.com/q/20007992 for more info"),-1}}else{var i=this._tags[t];this._tags.push(this.makeStyleTag(this._name,e,i))}return this._rulesCount++},r.replaceRule=function(e,t){if(this._optimizeForSpeed){var r=this.getSheet();if(t.trim()||(t=this._deletedRulePlaceholder),!r.cssRules[e])return e;r.deleteRule(e);try{r.insertRule(t,e)}catch(i){a||console.warn("StyleSheet: illegal rule: \n\n"+t+"\n\nSee https://stackoverflow.com/q/20007992 for more info"),r.insertRule(this._deletedRulePlaceholder,e)}}else{var i=this._tags[e];l(i,"old rule at index `"+e+"` not found"),i.textContent=t}return e},r.deleteRule=function(e){if(this._optimizeForSpeed)this.replaceRule(e,"");else{var t=this._tags[e];l(t,"rule at index `"+e+"` not found"),t.parentNode.removeChild(t),this._tags[e]=null}},r.flush=function(){this._injected=!1,this._rulesCount=0,this._tags.forEac
1h(function(e){return e&&e.parentNode.removeChild(e)}),this._tags=[]},r.cssRules=function(){var e=this;return this._tags.reduce(function(t,r){return r?t=t.concat(Array.prototype.map.call(e.getSheetForTag(r).cssRules,function(t){return t.cssText===e._deletedRulePlaceholder?null:t})):t.push(null),t},[])},r.makeStyleTag=function(e,t,r){t&&l(o(t),"makeStyleTag accepts only strings as second parameter");var i=document.createElement("style");this._nonce&&i.setAttribute("nonce",this._nonce),i.type="text/css",i.setAttribute("data-"+e,""),t&&i.appendChild(document.createTextNode(t));var s=document.head||document.getElementsByTagName("head")[0];return r?s.insertBefore(i,r):s.appendChild(i),i},t=[{key:"length",get:function(){return this._rulesCount}}],function(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}(e.prototype,t),e}();function l(e,t){if(!e)throw Error("StyleSheet: "+t+".")}var c=function(e){for(var t=5381,r=e.length;r;)t=33*t^e.charCodeAt(--r);return t>>>0},u={};function p(e,t){if(!t)return"jsx-"+e;var r=String(t),i=e+r;return u[i]||(u[i]="jsx-"+c(e+"-"+r)),u[i]}function f(e,t){var r=e+t;return u[r]||(u[r]=t.replace(/__jsx-style-dynamic-selector/g,e)),u[r]}var h=function(){function e(e){var t=void 0===e?{}:e,r=t.styleSheet,i=void 0===r?null:r,s=t.optimizeForSpeed,n=void 0!==s&&s;this._sheet=i||new d({name:"styled-jsx",optimizeForSpeed:n}),this._sheet.inject(),i&&"boolean"==typeof n&&(this._sheet.setOptimizeForSpeed(n),this._optimizeForSpeed=this._sheet.isOptimizeForSpeed()),this._fromServer=void 0,this._indices={},this._instancesCounts={}}var t=e.prototype;return t.add=function(e){var t=this;void 0===this._optimizeForSpeed&&(this._optimizeForSpeed=Array.isArray(e.children),this._sheet.setOptimizeForSpeed(this._optimizeForSpeed),this._optimizeForSpeed=this._sheet.isOptimizeForSpeed()),this._fromServer||(this._fromServer=this.selectFromServer(),this._instancesCounts=Object.keys(this._fromServer).reduce(function(e,t){return e[t]=0,e},{}));var r=this.getIdAndRules(e),i=r.styleId,s=r.rules;if(i in this._instancesCounts){this._instancesCounts[i]+=1;return}var n=s.map(function(e){return t._sheet.insertRule(e)}).filter(function(e){return -1!==e});this._indices[i]=n,this._instancesCounts[i]=1},t.remove=function(e){var t=this,r=this.getIdAndRules(e).styleId;if(function(e,t){if(!e)throw Error("StyleSheetRegistry: "+t+".")}(r in this._instancesCounts,"styleId: `"+r+"` not found"),this._instancesCounts[r]-=1,this._instancesCounts[r]<1){var i=this._fromServer&&this._fromServer[r];i?(i.parentNode.removeChild(i),delete this._fromServer[r]):(this._indices[r].forEach(function(e){return t._sheet.deleteRule(e)}),delete this._indices[r]),delete this._instancesCounts[r]}},t.update=function(e,t){this.add(t),this.remove(e)},t.flush=function(){this._sheet.flush(),this._sheet.inject(),this._fromServer=void 0,this._indices={},this._instancesCounts={}},t.cssRules=function(){var e=this,t=this._fromServer?Object.keys(this._fromServer).map(function(t){return[t,e._fromServer[t]]}):[],r=this._sheet.cssRules();return t.concat(Object.keys(this._indices).map(function(t){return[t,e._indices[t].map(function(e){return r[e].cssText}).join(e._optimizeForSpeed?"":"\n")]}).filter(function(e){return!!e[1]}))},t.styles=function(e){var t,r;return t=this.cssRules(),void 0===(r=e)&&(r={}),t.map(function(e){var t=e[0],i=e[1];return n.default.createElement("style",{id:"__"+t,key:"__"+t,nonce:r.nonce?r.nonce:void 0,dangerouslySetInnerHTML:{__html:i}})})},t.getIdAndRules=function(e){var t=e.children,r=e.dynamic,i=e.id;if(r){var s=p(i,r);return{styleId:s,rules:Array.isArray(t)?t.map(function(e){return f(s,e)}):[f(s,t)]}}return{styleId:p(i),rules:Array.isArray(t)?t:[t]}},t.selectFromServer=function(){return Array.prototype.slice.call(document.querySelectorAll('[id^="__jsx-"]')).reduce(function(e,t){return e[t.id.slice(2)]=t,e},{})},e}(),m=s.createContext(null);m.displayName="StyleSheetContext";var g=n.default.useInsertionEffect||n.default.useLayoutEffect,_=new h;function v(e){var t=_||s.useContext(m);return t&&g(function(){return t.add(e),function(){t.remove(e)}},[e.id,String(e.dynamic)]),null}v.dynamic=function(e){return e.map(function(e){return p(e[0],e[1])}).join(" ")},t.style=v}},e=>{e.O(0,[4609,6926,8475,636,6593,8792],()=>e(e.s=24046)),_N_E=e.O()}]);

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.