PageSourceSearch

https://www.theallies.co/_next/static/chunks/pages/birth-plan-builder/new/[slug]-63c16579b3ff2fb1.js

js theallies.co collected 2026-10-04 19:41:39 UTC 6,254 bytes, 1 lines download raw bytes

1try{let 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]="ac43d93d-b370-44e8-8b7e-e433442fa7d1",e._sentryDebugIdIdentifier="sentry-dbid-ac43d93d-b370-44e8-8b7e-e433442fa7d1")}catch(e){}(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1556],{22059:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(37876),l=r(94104),i=r(68827),o=r.n(i);let s=e=>{let{isOpen:t,setIsOpen:r,panelClassName:i,modalClassName:s,children:a,closeable:c=!0}=e;return(0,n.jsx)(l.lG,{open:t,onClose:()=>r(!1),className:"relative z-[111]",children:(0,n.jsx)("div",{className:`fixed inset-0 flex w-screen items-center justify-center bg-black/40 p-4 ${i??""}`,children:(0,n.jsxs)(l.Lj,{className:`relative max-w-[80vw] space-y-4 overflow-hidden rounded-3xl border bg-[#fcf7f3] p-6 shadow md:p-8 lg:max-w-[900px] ${s??""}`,children:[c&&(0,n.jsx)("button",{className:"absolute right-4 top-4 cursor-pointer",onClick:()=>r(!1),children:(0,n.jsx)(o(),{src:"/images/cancelbtn.svg",alt:"cancel",width:40,height:40})}),(0,n.jsx)("div",{className:"!mt-0",children:a})]})})})}},26892:function(e,t,r){"use strict";var n,l=this&&this.__assign||function(){return(l=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var l in t=arguments[r])Object.prototype.hasOwnProperty.call(t,l)&&(e[l]=t[l]);return e}).apply(this,arguments)},i=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var l=Object.getOwnPropertyDescriptor(t,r);(!l||("get"in l?!t.__esModule:l.writable||l.configurable))&&(l={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,l)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||(n=function(e){return(n=Object.getOwnPropertyNames||function(e){var t=[];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[t.length]=r);return t})(e)},function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r=n(e),l=0;l<r.length;l++)"default"!==r[l]&&i(t,e,r[l]);return o(t,e),t}),a=this&&this.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var l=0,n=Object.getOwnPropertySymbols(e);l<n.length;l++)0>t.indexOf(n[l])&&Object.prototype.propertyIsEnumerable.call(e,n[l])&&(r[n[l]]=e[n[l]]);return r};Object.defineProperty(t,"__esModule",{value:!0});var c=s(r(14232)),u=r(88523),d=(0,r(16819).createAnimation)("ClipLoader","0% {transform: rotate(0deg) scale(1)} 50% {transform: rotate(180deg) scale(0.8)} 100% {transform: rotate(360deg) scale(1)}","clip");t.default=function(e){var t=e.loading,r=e.color,n=void 0===r?"#000000":r,i=e.speedMultiplier,o=e.cssOverride,s=e.size,p=void 0===s?35:s,f=a(e,["loading","color","speedMultiplier","cssOverride","size"]),h=l({background:"transparent !important",width:(0,u.cssValue)(p),height:(0,u.cssValue)(p),borderRadius:"100%",border:"2px solid",borderTopColor:n,borderBottomColor:"transparent",borderLeftColor:n,borderRightColor:n,display:"inline-block",animation:"".concat(d," ").concat(.75/(void 0===i?1:i),"s 0s infinite linear"),animationFillMode:"both"},void 0===o?{}:o);return void 0===t||t?c.createElement("span",l({style:h},f)):null}},77328:(e,t,r)=>{e.exports=r(89836)},79347:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>v});var n=r(37876),l=r(89099),i=r(10553),o=r(14232),s=r(26892),a=r.n(s),c=r(13126),u=r(88293),d=r(22059),p=r(45872),f=r(63888),h=r(34716),b=r(2956),m=r(82845),g=r(15815);function v(){let e=(0,l.useRouter)(),{slug:t}=e.query,[r,s]=(0,o.useState)(!1),{activeTheme:v,addOns:y,userIdentified:w}=(0,b.C)(),{setDeliveryQuestions:_,setAboutQuestions:x,setLabourQuestions:O,setNewBornQuestions:j,setTemplateQuestions:N,setAllQuestions:P,setPages:C}=(0,h.c)(),S=(0,o.useRef)(!1);return(0,o.useEffect)(()=>{let r=async()=>
1{if(!S.current){S.current=!0;try{var r,n,l;let o=await (0,i.getSession)(),a=(null==o||null==(r=o.user)?void 0:r.jwtToken)??"";(null==o||null==(n=o.user.account)?void 0:n.provider)==="guest"&&s(!0);let c=await f.F.questionnaire.useNewTemplateApiBirthplanUseNewTemplateGet({templateSlug:t,addons:null==y?void 0:y.toString(),themeName:v,jwtToken:a,queryString:e.asPath.split("?")[1]||""}),u=(0,g.l)((null==c?void 0:c.questions)??[]);x((0,m.Ot)(null==u?void 0:u.about_me)),O((0,m.Ot)(null==u?void 0:u.labour_preferences)),_((0,m.Ot)(null==u?void 0:u.post_delivery)),j((0,m.Ot)(null==u?void 0:u.new_born_care)),C((null==c?void 0:c.pages)??[]),N((null==c||null==(l=c.questions)?void 0:l.filter(e=>{let{templateSpaceId:t}=e;return!!t}))??[]),P((null==c?void 0:c.questions)??[]);let d=new URLSearchParams;c.startTutorial&&d.set("startTutorial","true"),e.replace(`/birth-plan-builder/${c.userTemplateSessionCode}/${t}?${d.toString()}`)}catch(t){console.error(t),e.replace("/birth-plan-builder/templates")}}};t&&w&&r()},[t,w]),(0,n.jsxs)(u.O,{activeView:"templates",children:[(0,n.jsx)("section",{className:"lg:customScroll min-h-screen w-full bg-white lg:h-screen lg:max-w-contentWidthLaptop lg:rounded-r-3xl 2xl:max-w-contentWidthDesktop",children:(0,n.jsx)("div",{className:"flex h-full min-h-screen items-center justify-center",children:(0,n.jsx)(a(),{color:"#000"})})}),(0,n.jsx)(c.S,{}),(0,n.jsx)(d.A,{modalClassName:"!max-w-lg",isOpen:r,setIsOpen:s,children:(0,n.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,n.jsxs)(p.A,{size:"2xl",color:"primary",className:"font-medium",children:["Motherhood Begins ",(0,n.jsx)("br",{})," with Choices."]}),(0,n.jsx)(p.A,{size:"md",color:"secondary",className:"mt-1",children:"Our easy-to-use, visually appealing birth plan templates will help you find your voice and take charge of your birthing dreams. Your birth, your way."})]})})]})}},85481:(e,t,r)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/birth-plan-builder/new/[slug]",function(){return r(79347)}])}},e=>{var t=t=>e(e.s=t);e.O(0,[8230,3273,7888,7109,8827,6079,4104,3888,7120,6792,636,6593,8792],()=>t(85481)),_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.