PageSourceSearch

https://astrologyandpsyche.com/_next/static/immutable/chunks/20s9ul0uzdziy.js

js astrologyandpsyche.com collected 2026-10-02 00:47:33 UTC 46,935 bytes, 4 lines download raw bytes

1;!function(){try { var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&((e._debugIds|| (e._debugIds={}))[n]="0c103d2b-610b-8d13-f15b-7285b88b456a")}catch(e){}}();
2(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,986698,e=>{"use strict";var t=e.i(975705),n=e.i(174617),r=e.i(286542),i=e.i(935408),a=e.i(770110),o=e.i(327400),l=e.i(270682),s=e.i(865552),c=e.i(81079),u=e.i(218403),d=e.i(304068),m=e.i(805606),p=e.i(609701),f=e.i(112448),h=e.i(3300),x=e.i(490733),v=e.i(268601),g="Popover",[y,b]=(0,i.createContextScope)(g,[c.createPopperScope]),j=(0,c.createPopperScope)(),[C,w]=y(g),k=e=>{let{__scopePopover:n,children:r,open:i,defaultOpen:a,onOpenChange:o,modal:l=!1}=e,u=j(n),d=t.useRef(null),[m,p]=t.useState(!1),[h,x]=(0,f.useControllableState)({prop:i,defaultProp:a??!1,onChange:o,caller:g});return(0,v.jsx)(c.Root,{...u,children:(0,v.jsx)(C,{scope:n,contentId:(0,s.useId)(),triggerRef:d,open:h,onOpenChange:x,onOpenToggle:t.useCallback(()=>x(e=>!e),[x]),hasCustomAnchor:m,onCustomAnchorAdd:t.useCallback(()=>p(!0),[]),onCustomAnchorRemove:t.useCallback(()=>p(!1),[]),modal:l,children:r})})};k.displayName=g;var N="PopoverAnchor";t.forwardRef((e,n)=>{let{__scopePopover:r,...i}=e,a=w(N,r),o=j(r),{onCustomAnchorAdd:l,onCustomAnchorRemove:s}=a;return t.useEffect(()=>(l(),()=>s()),[l,s]),(0,v.jsx)(c.Anchor,{...o,...i,ref:n})}).displayName=N;var E="PopoverTrigger",P=t.forwardRef((e,t)=>{let{__scopePopover:i,...a}=e,o=w(E,i),l=j(i),s=(0,r.useComposedRefs)(t,o.triggerRef),u=(0,v.jsx)(m.Primitive.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":H(o.open),...a,ref:s,onClick:(0,n.composeEventHandlers)(e.onClick,o.onOpenToggle)});return o.hasCustomAnchor?u:(0,v.jsx)(c.Anchor,{asChild:!0,...l,children:u})});P.displayName=E;var S="PopoverPortal",[F,T]=y(S,{forceMount:void 0}),I=e=>{let{__scopePopover:t,forceMount:n,children:r,container:i}=e,a=w(S,t);return(0,v.jsx)(F,{scope:t,forceMount:n,children:(0,v.jsx)(d.Presence,{present:n||a.open,children:(0,v.jsx)(u.Portal,{asChild:!0,container:i,children:r})})})};I.displayName=S;var R="PopoverContent",A=t.forwardRef((e,t)=>{let n=T(R,e.__scopePopover),{forceMount:r=n.forceMount,...i}=e,a=w(R,e.__scopePopover);return(0,v.jsx)(d.Presence,{present:r||a.open,children:a.modal?(0,v.jsx)(L,{...i,ref:t}):(0,v.jsx)(O,{...i,ref:t})})});A.displayName=R;var D=(0,p.createSlot)("PopoverContent.RemoveScroll"),L=t.forwardRef((e,i)=>{let a=w(R,e.__scopePopover),o=t.useRef(null),l=(0,r.useComposedRefs)(i,o),s=t.useRef(!1);return t.useEffect(()=>{let e=o.current;if(e)return(0,h.hideOthers)(e)},[]),(0,v.jsx)(x.RemoveScroll,{as:D,allowPinchZoom:!0,children:(0,v.jsx)(M,{...e,ref:l,trapFocus:a.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,n.composeEventHandlers)(e.onCloseAutoFocus,e=>{e.preventDefault(),s.current||a.triggerRef.current?.focus()}),onPointerDownOutside:(0,n.composeEventHandlers)(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;s.current=2===t.button||n},{checkForDefaultPrevented:!1}),onFocusOutside:(0,n.composeEventHandlers)(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1})})})}),O=t.forwardRef((e,n)=>{let r=w(R,e.__scopePopover),i=t.useRef(!1),a=t.useRef(!1);return(0,v.jsx)(M,{...e,ref:n,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(i.current||r.triggerRef.current?.focus(),t.preventDefault()),i.current=!1,a.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(i.current=!0,"pointerdown"===t.detail.originalEvent.type&&(a.current=!0));let n=t.target;r.triggerRef.current?.contains(n)&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&a.current&&t.preventDefault()}})}),M=t.forwardRef((e,t)=>{let{__scopePopover:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:s,disableOutsidePointerEvents:u,onEscapeKeyDown:d,onPointerDownOutside:m,onFocusOutside:p,onInteractOutside:f,...h}=e,x=w(R,n),g=j(n);return(0,o.useFocusGuards)(),(0,v.jsx)(l.FocusScope,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:s,children:(0,v.jsx)(a.DismissableLayer,{asChild:!0,disableOutsidePointerEvents:u,onInteractOutside:f,onEscapeKeyDown:d,onPointerDownOutside:m,onFocusOutside:p,onDismiss:()=>
2x.onOpenChange(!1),children:(0,v.jsx)(c.Content,{"data-state":H(x.open),role:"dialog",id:x.contentId,...g,...h,ref:t,style:{...h.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),_="PopoverClose";t.forwardRef((e,t)=>{let{__scopePopover:r,...i}=e,a=w(_,r);return(0,v.jsx)(m.Primitive.button,{type:"button",...i,ref:t,onClick:(0,n.composeEventHandlers)(e.onClick,()=>a.onOpenChange(!1))})}).displayName=_;var V=t.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,i=j(n);return(0,v.jsx)(c.Arrow,{...i,...r,ref:t})});function H(e){return e?"open":"closed"}V.displayName="PopoverArrow",e.s(["Arrow",0,V,"Content",0,A,"Portal",0,I,"Root",0,k,"Trigger",0,P])},983631,(e,t,n)=>{var r=e.r(924519),i=e.r(460779);t.exports=function(e){return"symbol"==typeof e||i(e)&&"[object Symbol]"==r(e)}},889695,(e,t,n)=>{var r=e.r(593460),i=e.r(377882),a=e.r(983631),o=0/0,l=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,c=/^0o[0-7]+$/i,u=parseInt;t.exports=function(e){if("number"==typeof e)return e;if(a(e))return o;if(i(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=i(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var n=s.test(e);return n||c.test(e)?u(e.slice(2),n?2:8):l.test(e)?o:+e}},533066,(e,t,n)=>{var r=e.r(377882),i=e.r(850154),a=e.r(889695),o=Math.max,l=Math.min;t.exports=function(e,t,n){var s,c,u,d,m,p,f=0,h=!1,x=!1,v=!0;if("function"!=typeof e)throw TypeError("Expected a function");function g(t){var n=s,r=c;return s=c=void 0,f=t,d=e.apply(r,n)}function y(e){var n=e-p,r=e-f;return void 0===p||n>=t||n<0||x&&r>=u}function b(){var e,n,r,a=i();if(y(a))return j(a);m=setTimeout(b,(e=a-p,n=a-f,r=t-e,x?l(r,u-n):r))}function j(e){return(m=void 0,v&&s)?g(e):(s=c=void 0,d)}function C(){var e,n=i(),r=y(n);if(s=arguments,c=this,p=n,r){if(void 0===m)return f=e=p,m=setTimeout(b,t),h?g(e):d;if(x)return clearTimeout(m),m=setTimeout(b,t),g(p)}return void 0===m&&(m=setTimeout(b,t)),d}return t=a(t)||0,r(n)&&(h=!!n.leading,u=(x="maxWait"in n)?o(a(n.maxWait)||0,t):u,v="trailing"in n?!!n.trailing:v),C.cancel=function(){void 0!==m&&clearTimeout(m),f=0,s=p=c=m=void 0},C.flush=function(){return void 0===m?d:j(i())},C}},850154,(e,t,n)=>{var r=e.r(971640);t.exports=function(){return r.Date.now()}},653957,(e,t,n)=>{var r=/\s/;t.exports=function(e){for(var t=e.length;t--&&r.test(e.charAt(t)););return t}},593460,(e,t,n)=>{var r=e.r(653957),i=/^\s+/;t.exports=function(e){return e?e.slice(0,r(e)+1).replace(i,""):e}},9136,(e,t,n)=>{t.exports=e.r(607681)},960944,e=>{"use strict";var t=e.i(268601),n=e.i(609203),r=e.i(100004),i=e.i(975705);let a={[r.PolicyKindEnumType.RefundPolicy]:"refund-policy",[r.PolicyKindEnumType.PrivacyPolicy]:"privacy-policy",[r.PolicyKindEnumType.TermsOfService]:"terms-of-service"},o={[r.PolicyKindEnumType.PrivacyPolicy]:"Store Privacy Policy",[r.PolicyKindEnumType.RefundPolicy]:"Refund Policy",[r.PolicyKindEnumType.TermsOfService]:"Terms of Service"};e.s(["default",0,function({policy:e}){let[r,a]=(0,i.useState)("");return(0,i.useEffect)(()=>{a((0,n.tiptapJsonToHtml)(e.description))},[e.description]),(0,t.jsx)("div",{children:(0,t.jsxs)("div",{className:"w-full mx-auto max-w-xl px-3 xs:max-w-3xl pb-6",children:[(0,t.jsx)("h1",{children:o[e.kind]}),(0,t.jsx)("p",{dangerouslySetInnerHTML:{__html:r}})]})})},"mapPolicyKindToTitle",0,o,"policyToSlug",0,a])},654964,65642,355911,e=>{"use strict";var t=e.i(268601),n=e.i(7468),r=e.i(633435),i=e.i(975705),a=e.i(753493),o=e.i(729184),l=e.i(693078),s=e.i(219639);function c(e){return["US","CA","UA","IN"].includes(e)}let u=s.z.object({country:s.z.string(),postalCode:s.z.string().optional()}).refine(e=>!c(e.country)||!!e.postalCode,{message:"Required",path:["postalCode"]});e.s(["BillingLocation",0,u,"isPostalCodeRequired",0,c],65642);let d=(0,i.createContext)(null);function m(){let e=(0,i.useContext)(d);if(!e)throw Error("usePricingContext must be used within a Link Context Provider");return e}e.s(["PricingContext",0,function({children:e,saleDiscount:a,originalPrice
2:s,stripeAccountId:u,creatorId:m,taxBehavior:p}){let[f,h]=(0,i.useState)(),[x,v]=(0,i.useState)(""),[g,y]=(0,i.useState)("needs-billing-information"),[b,j]=(0,i.useState)(null),[C,w]=(0,i.useState)("US"),[k,N]=(0,i.useState)(null),[E,P]=(0,i.useState)(null),S=E??f??a?.price??s,F=(0,i.useCallback)(({couponCode:e,price:t})=>{v(e),h(t)},[]),[T]=(0,n.useMutation)(l.default,{onError:e=>{throw y("error"),e}}),I=(0,i.useCallback)(async(e,t,n,r)=>{y("is-calculating");try{let{data:i}=await T({variables:{input:{amount:e,currency:t,creatorId:m,billingAddress:{country:n,postalCode:r,state:null,city:null,line1:null}}}});if(i?.calculateTax?.__typename==="CalculateTaxPayloadSuccess")j({calculationId:i.calculateTax.calculationId,taxAmount:i.calculateTax.taxAmount,totalAmount:i.calculateTax.totalAmount});else if(i?.calculateTax?.__typename==="TaxCalculationError"&&"INVALID_ADDRESS"===i.calculateTax.code)return void y("invalid-billing-information");else throw i;y("ready")}catch(e){throw j(null),y("error"),e}},[T,m]);return(0,i.useEffect)(()=>{if(S?.amount&&p){if(c(C)&&!k)return void y("needs-billing-information");I(S.amount,S.currencyCode,C,k??null)}},[S?.amount,S?.currencyCode,p,I,C,k]),(0,i.useEffect)(()=>{"error"===g&&r.toast.error("An error occurred while calculating sales tax.")},[g]),(0,t.jsx)(d.Provider,{value:{totalPrice:S,couponCode:x,onApplyCoupon:F,taxCalculation:b,taxCalculationStatus:g,setBillingCountry:w,setBillingPostalCode:N,setOverridePrice:P,taxBehavior:p,saleDiscount:a,originalPrice:E??s},children:(0,t.jsx)(o.StripeElementsProvider,{stripeAccountId:u,price:b?.totalAmount&&S?.currencyCode?{amount:b?.totalAmount,currencyCode:S?.currencyCode}:S,children:e})})},"usePricingContext",0,m],654964);var p=e.i(992472),f=e.i(753);e.i(761911);var h=e.i(762023),x=e.i(124880),v=e.i(57176),g=e.i(30297),y=e.i(222733),b=e.i(908583),j=e.i(469299),C=e.i(986698),w=e.i(956687);let k=C.Root,N=C.Trigger,E=C.Arrow,P=i.forwardRef(({className:e,align:n="center",sideOffset:r=4,...i},a)=>(0,t.jsx)(C.Portal,{children:(0,t.jsx)(C.Content,{ref:a,align:n,sideOffset:r,className:(0,w.cn)("z-50 w-72 rounded border border-neutral-200 bg-white p-4 text-neutral-900 shadow-md outline-none animate-in data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...i})}));P.displayName=C.Content.displayName;var S=e.i(435987),F=e.i(549646),T=e.i(166589),I=e.i(76597),R=e.i(931318),A=e.i(613796),D=e.i(100004),L=e.i(525170),O=e.i(64480),M=e.i(568470),_=e.i(299809),V=e.i(975773);function H({resourceId:e,onApply:n,stripePaymentIntentId:r}){let[a,o]=(0,i.useState)(""),[l,s]=(0,i.useState)(""),[c,{loading:u}]=(0,A.useLazyQuery)(V.default),d=(0,i.useCallback)(async t=>{s("");try{let{data:{calculateDiscounts:i}}=await c({variables:{input:{resourceId:e,couponCode:t,stripePaymentIntentId:r}}});if(!i.originalPrice)throw i;n({couponCode:t,price:i.deductedPrice,discounts:i.discounts})}catch(e){s(e.errors??(e.message||"Invalid coupon code"))}},[c,n,e,r]),m=(0,i.useCallback)(e=>{o(e.target.value?.trim().toUpperCase())},[]),p=(0,i.useCallback)(()=>{let e=!0,t="";return a||(e=!1,t="Coupon code is required"),a.length>32&&(e=!1,t="Coupon code should be less than 32 characters long"),s(t),e},[a]),f=(0,i.useCallback)(e=>{e.preventDefault(),p()&&d(a)},[d,p,a]);return(0,t.jsxs)("div",{children:[(0,t.jsxs)("div",{className:"flex gap-4",children:[(0,t.jsx)(v.Input,{placeholder:"Promo code",value:a,onChange:m,onBlur:p,error:!!l}),(0,t.jsx)(O.Button,{onClick:f,variant:"secondary",type:"button",disabled:u||a?.length===0,children:u?(0,t.jsx)(g.Loader,{}):"Apply"})]}),l&&(0,t.jsx)(M.InputError,{children:"Invalid coupon code"})]})}function B({amount:e}){return(0,t.jsxs)("div",{className:"order-summary-row",children:[(0,t.jsx)("p",{className:"text-xs text-neutral-1000",children:"Total amount"}),(0,t.jsx)("p",{className:"text-xs text-neutral-1000",children:e})]})}function $({type:e,price:n,saleDiscount:r,resourceId:a,stripePaymentIntentId:o,children:l,discounts:s,setDiscounts:c}){let{onApplyCoupon:u,couponCode:d}=m(),[p,{loading:f}]=(0,A.useLazyQuery)(V.default),h=(0,i.useCallback)(async()=>{try{let{data:{calculateDiscounts:e}}=await p({variables:{input:{resourceId:a,couponCode:null,stripePaymentIntentId:o}}});if(!e.originalPrice)throw e;c(e.discounts),u({couponCode:"",price:e.deductedPrice})}catch(e){console.log(e.errors??(e.message||"Invalid coupon code"))}},[p,u,a,o,c]);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"divider "}),(0,t.jsx)("h6",{children:"Order Summary"}),(0,t.jsxs)("div",{className:"order-summary-row",children:[(0,t.jsxs)("p",{className:"text-2xs",children:[e," price"]}),(0,t.jsx)("p",{className:"text-2xs",children:n?(0,_.formatAmou
2ntForDisplay)(n.amount/100,n.currencyCode??D.CurrencyCode.Usd):"FREE"})]}),r&&(0,t.jsx)(t.Fragment,{children:(0,t.jsxs)("div",{className:"order-summary-row",children:[(0,t.jsx)("p",{className:"text-2xs",children:"Sale price"}),(0,t.jsx)("p",{className:"text-2xs",children:r&&(0,_.formatAmountForDisplay)(r.price.amount/100,r.price.currencyCode)})]})}),s?.map((e,r)=>e.type===D.DiscountType.Coupon&&(0,t.jsxs)("div",{className:"mt-4",children:[(0,t.jsx)("p",{className:"text-2xs",children:"Coupon discount"}),(0,t.jsxs)("div",{className:"flex items-center justify-between mt-1",children:[(0,t.jsxs)("div",{className:"flex items-center justify-center gap-3 bg-neutral-100 rounded-sm p-2",children:[(0,t.jsx)("span",{className:"text-2xs",children:d}),(0,t.jsx)("button",{children:f?(0,t.jsx)(g.Loader,{}):(0,t.jsx)(O.Button,{onClick:()=>h(),ghost:!0,className:"cursor-pointer group-hover",children:(0,t.jsx)(L.XClose,{width:16,height:16,className:"text-neutral-600 group-hover:text-neutral-700"})})})]}),(0,t.jsxs)("p",{className:"text-2xs",children:[e.amount&&`-${(0,_.formatAmountForDisplay)(e.amount/100,n?.currencyCode)}`,e.percentage&&`${100*e.percentage}%`]})]})]},r)),l]})}var q=e.i(307219),z=e.i(959467),K=e.i(927752),U=e.i(760998),Y=e.i(533066),G=e.i(981798);function W({field:e,country:n}){return(0,t.jsx)(v.Input,{placeholder:`Enter your ${"US"===n?"ZIP":"postal"} code`,ref:e.ref,name:e.name,onBlur:e.onBlur,onChange:function(e){let t=(0,i.useRef)(e);t.current=e;let[n]=(0,i.useState)(()=>(0,Y.default)((...e)=>t.current(...e),500));return n}(e.onChange)})}let Q=[...f.CountryCodeEnumValues].sort((e,t)=>e.description.replace(/^The /g,"").localeCompare(t.description.replace(/^The /g,"")));function X({form:e,owner:n,hidePoliciesFooter:a,onPaymentSuccess:o,onPaymentError:l,children:s}){let c=(0,F.useStripe)(),u=(0,T.useRouter)(),{payment_intent:d,payment_intent_client_secret:m}=u.query,[f,h]=(0,i.useState)(!1);return((0,i.useEffect)(()=>{c&&d&&m&&(h(!0),c.retrievePaymentIntent(m).then(function({paymentIntent:e}){if(e)switch(e.status){case"succeeded":case"requires_capture":case"processing":o(z.PAYMENT_TYPE.stripe);break;case"requires_payment_method":l&&l(z.PAYMENT_TYPE.stripe,Error("Payment failed. Please try another payment method.")),r.toast.error("Payment failed. Please try another payment method."),u.replace(u.asPath.split("?")[0],void 0,{shallow:!0});break;default:l&&l(z.PAYMENT_TYPE.stripe,Error("Something went wrong.")),r.toast.error("Something went wrong."),u.replace(u.asPath.split("?")[0],void 0,{shallow:!0})}}).finally(()=>h(!1)))},[d,c,o,l,m,u.asPath.split,u.replace]),f)?(0,t.jsx)(g.Loader,{global:!0}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(p.Form,{...e,children:(0,t.jsx)("form",{"data-testid":"payment-form",children:s})}),!a&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"divider"}),(0,t.jsx)(U.default,{username:n.username,policies:n.policies||[]})]})]})}X.NameField=function(e){return(0,t.jsx)(p.FormField,{control:e.control,name:e.name,render:({field:e})=>(0,t.jsxs)(p.FormItem,{children:[(0,t.jsx)(p.FormLabel,{className:"mb-2",children:"Your name"}),(0,t.jsx)(p.FormControl,{children:(0,t.jsx)(v.Input,{placeholder:"Guy Hawkins",...e})}),(0,t.jsx)(p.FormMessage,{})]})})},X.EmailField=function(e){return(0,t.jsx)(p.FormField,{control:e.control,name:e.name,render:({field:e})=>(0,t.jsxs)(p.FormItem,{className:"mt-3",children:[(0,t.jsx)(p.FormLabel,{className:"mb-2",children:"Email"}),(0,t.jsx)(p.FormControl,{children:(0,t.jsx)(v.Input,{type:"email",placeholder:"Enter your email address",...e})}),(0,t.jsx)(p.FormMessage,{})]})})},X.MarketingConsentField=function({control:e,name:n}){return(0,t.jsx)(p.FormField,{control:e,name:n,render:({field:e})=>(0,t.jsxs)(p.FormItem,{children:[(0,t.jsxs)("div",{className:"flex mt-2",children:[(0,t.jsx)(p.FormControl,{children:(0,t.jsx)(x.Checkbox,{...e,onCheckedChange:e.onChange,checked:e.value})}),(0,t.jsx)(p.FormLabel,{className:"mb-2 ml-2 font-normal",children:"Email me with news and offers"})]}),(0,t.jsx)(p.FormMessage,{})]})})},X.LocationFields=function({countryFieldName:e,postalCodeFieldName:n,control:r}){let{totalPrice:a,taxCalculationStatus:o,setBillingCountry:l,setBillingPostalCode:s}=m(),u=(0,I.useWatch)({name:e,control:r}),d=(0,I.useWatch)({name:n,control:r});(0,i.useEffect)(()=>
2{l(u),s(null)},[s,l,u]),(0,i.useEffect)(()=>{s(d)},[s,d]);let f=(0,I.useFormContext)(),x=f.getFieldState(n).isTouched;(0,i.useEffect)(()=>{x&&("invalid-billing-information"===o?r.setError(n,{type:"location-tax-error",message:"Invalid postal code."}):r.getFieldState(n)?.error?.type==="location-tax-error"&&f.clearErrors(n))},[r,f.clearErrors,n,o,x]);let v=(0,G.useIsMobile)(),[y,C]=(0,i.useState)(!1),[w,S]=(0,i.useState)();return(0,i.useEffect)(()=>{if(w)return;C(!0);let t=new AbortController;return(async()=>{let n=await fetch("/api/user-geo",{signal:t.signal}),r=await n.json();C(!1),Q.map(({name:e})=>e).includes(r.country)&&f.setValue(e,r.country)})().catch(e=>{if("AbortError"!==e.name)throw S(e),C(!1),e}),()=>t.abort()},[e,f.setValue,w]),a?.amount?(0,t.jsx)(t.Fragment,{children:(0,t.jsxs)("div",{className:"flex gap-3 items-end",children:[(0,t.jsx)(p.FormField,{control:r,name:e,render:({field:e})=>(0,t.jsxs)(p.FormItem,{className:"mt-3 flex-grow",children:[(0,t.jsxs)(p.FormLabel,{children:["Billing location",v?(0,t.jsx)(k,{children:(0,t.jsxs)(N,{children:[(0,t.jsx)(h.InfoCircle,{width:"15",height:"15",className:"text-neutral-700 ml-1 mt-3"}),(0,t.jsxs)(P,{className:"border-none bg-neutral-900 text-neutral-100 shadow-xl z-[60] text-left",side:"right",children:[(0,t.jsx)("p",{children:"We are required to collect this information for tax purposes."}),(0,t.jsx)(E,{className:"fill-neutral-900"})]})]})}):(0,t.jsx)(j.Tooltip,{content:"We are required to collect this information for tax purposes.",children:(0,t.jsx)("button",{className:"ml-1",type:"button",children:(0,t.jsx)(h.InfoCircle,{width:"12",height:"12",className:"text-neutral-700"})})})]}),y?(0,t.jsx)("div",{className:"h-11",children:(0,t.jsx)(g.Loader,{})}):(0,t.jsx)(b.Select,{...e,onValueChange:e.onChange,children:(0,t.jsx)(b.Select.OptionGroup,{children:Q.map(({name:e,description:n})=>(0,t.jsx)(b.Select.Option,{value:e,children:n},e))})}),(0,t.jsx)(p.FormMessage,{})]})}),c(u)?(0,t.jsx)("div",{className:"flex gap-3 items-end",children:(0,t.jsx)(p.FormField,{control:r,name:n,render:({field:e})=>(0,t.jsxs)(p.FormItem,{className:"mt-3",children:[(0,t.jsx)(p.FormMessage,{}),(0,t.jsx)(p.FormControl,{children:(0,t.jsx)(W,{field:e,country:u})})]})})}):null]})}):null},X.PhoneField=function(e){return(0,t.jsx)(p.FormField,{control:e.control,name:e.name,render:({field:n})=>(0,t.jsxs)(p.FormItem,{className:"mt-3",children:[(0,t.jsxs)(p.FormLabel,{className:"mb-2",children:["Phone Number",!e.isPhoneRequired&&(0,t.jsx)("span",{className:"ml-1 font-normal text-neutral-400",children:"(Optional)"})]}),(0,t.jsx)(p.FormControl,{children:(0,t.jsx)(y.PhoneInput,{...n,value:n.value,placeholder:"Enter your phone"})}),(0,t.jsx)(p.FormMessage,{})]})})},X.PhoneConsentField=function({name:e,control:n}){return(0,t.jsx)(p.FormField,{control:n,name:e,render:({field:e})=>(0,t.jsxs)(p.FormItem,{children:[(0,t.jsxs)("div",{className:"flex mt-2",children:[(0,t.jsx)(p.FormControl,{children:(0,t.jsx)(x.Checkbox,{...e,onCheckedChange:e.onChange,checked:e.value})}),(0,t.jsx)(p.FormLabel,{className:"mb-2 ml-2",children:(0,t.jsx)(K.default,{})})]}),(0,t.jsx)(p.FormMessage,{})]})})},X.Summary=function({resourceId:e,hideCouponInput:n,type:r}){let{originalPrice:a,saleDiscount:o,taxBehavior:l,taxCalculation:s,taxCalculationStatus:c,onApplyCoupon:u,totalPrice:d}=m(),[p,f]=(0,i.useState)([]),h=null;return"is-calculating"===c?h=(0,t.jsx)("span",{className:"text-neutral-600",children:"Calculating …"}):"needs-billing-information"===c?h=(0,t.jsx)("span",{className:"text-neutral-600",children:"Enter billing location"}):"error"===c?h=(0,t.jsx)("span",{className:"text-cherry-800",children:"Error"}):"invalid-billing-information"===c?h=(0,t.jsx)("span",{className:"text-cherry-800",children:"Invalid billing location"}):s&&d&&(h=(0,S.formatAmountForDisplay)(s.taxAmount/100,d.currencyCode)),(0,t.jsx)("div",{className:"mt-4","data-testid":"payment-summary",children:!!d?.amount&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)($,{type:r,price:a,saleDiscount:o,resourceId:e,discounts:p,setDiscounts:f,children:["INCLUSIVE"===l&&(0,t.jsxs)(t.Fragment,{children:[s&&(0,t.jsxs)("div",{className:"order-summary-row",children:[(0,t.jsx)("p",{className:"text-2xs",children:"Subtotal (before tax)"}
2),(0,t.jsx)("p",{className:"text-2xs",children:(0,S.formatAmountForDisplay)((s.totalAmount-s.taxAmount)/100,d.currencyCode)})]}),(0,t.jsxs)("div",{className:"order-summary-row",children:[(0,t.jsx)("p",{className:"text-2xs",children:"Tax (included)"}),(0,t.jsx)("p",{className:"text-2xs",children:h})]})]}),"EXCLUSIVE"===l&&(0,t.jsxs)("div",{className:"order-summary-row",children:[(0,t.jsx)("p",{className:"text-2xs",children:"Tax"}),(0,t.jsx)("p",{className:"text-2xs",children:h})]}),s||d?(0,t.jsx)(B,{amount:(0,S.formatAmountForDisplay)((s?.totalAmount||d.amount)/100,d.currencyCode)}):null]}),(0,t.jsx)("div",{className:"divider"}),!n&&(0,t.jsx)(H,{resourceId:e,onApply:({couponCode:e,price:t,discounts:n})=>{f(n),u({couponCode:e,price:t})}})]})})},X.PaymentMethod=function({owner:e,onCreatePaypalOrder:n,onPaymentSuccess:o,onPaymentError:l,onPaypalCancel:s,createFreeOrder:c,freeOrderLoading:u,isProcessing:d,handleSubmitStripePayment:p,ctaCopy:f}){let{taxCalculation:h,taxCalculationStatus:x,couponCode:v,totalPrice:g}=m(),{hasPaypalAccount:y,hasStripeAccount:b,preferences:j,paypalMerchantId:C}=e,{payment_intent:w,payment_intent_client_secret:k}=(0,T.useRouter)().query,[N,E]=(0,i.useState)(!!w&&!!k||!y&&b),P=(0,F.useElements)(),A=(0,F.useStripe)(),D=(0,I.useFormContext)(),L=(0,R.useProductColors)(),O={backgroundColor:L?.buttonFill??"#1f1f1f",color:L?.buttonText??"#ffffff"};return g?.amount?(0,t.jsxs)("div",{className:"mt-4",children:[(0,t.jsx)(a.default,{onPaymentMethodChange:e=>{E(e===z.PAYMENT_TYPE.stripe)},hasPaypalAccount:y,hasStripeAccount:b,stripe:(0,t.jsx)(F.PaymentElement,{options:{layout:{type:"tabs"},fields:{billingDetails:{address:"never"}}}}),paypal:(0,t.jsx)(q.PayPal,{disabled:!y,createOrder:async()=>{if("is-calculating"===x)throw Error("Still computing sales tax. Please try again later.");if("invalid-billing-information"===x)throw Error("Please check your billing location and ensure it is valid.");if("error"===x)throw Error("Something went wrong while computing sales tax. Please try again later.");if(!await D.trigger(void 0,{shouldFocus:!0}))throw Error("Please fix invalid fields.");return n(h?.calculationId)},intent:"capture",currencyCode:g.currencyCode,onSuccess:o,onCancel:s,onError:l,payLater:j?.paypal?.enablePayLaterOption,merchant:C},`${v}-${g.amount}-${g.currencyCode}`)}),N&&(0,t.jsx)("button",{type:"button",className:"w-full mt-4 rounded-md py-2.5 text-2xs font-semibold disabled:opacity-50",disabled:!A||!P||d||"is-calculating"===x,style:O,onClick:async()=>{if(!A)throw r.toast.error(S.genericErrorMessage),Error("Stripe is missing");if(!P)throw r.toast.error(S.genericErrorMessage),Error("Stripe elements are missing");if("invalid-billing-information"===x)return void r.toast.error("Please check your billing location and ensure it is valid.");if("error"===x)throw Error("Something went wrong while computing sales tax. Please try again later.");let{error:e}=await P.submit();if(e)throw r.toast.error(e?.message||S.genericErrorMessage),e;await D.trigger()?p(A,P,h?.calculationId):r.toast.error("Please fix invalid fields.")},children:!A||d?"Processing …":f||"Complete order"})]}):(0,t.jsx)("button",{type:"button",onClick:c,className:"w-full mt-4 rounded-md py-2.5 text-2xs font-semibold disabled:opacity-50",disabled:u,style:O,children:u?"Processing …":f||"Get now for FREE"})},e.s(["default",0,X],355911)},693078,(e,t,n)=>{var r={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"CalculateTax"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"input"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"CalculateTaxInput"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"calculateTax"},arguments:[{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"Variable",name:{kind:"Name",value:"input"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"CalculateTaxPayloadSuccess"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"calculationId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"taxAmount"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"totalAmount"},arguments:[],directives:[]}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"TaxCalculationError"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"code"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"message"},arguments:[],directives:[]}]}}]}}]}}],loc:{start:0,end:254}};
2r.loc.source={body:"mutation CalculateTax($input: CalculateTaxInput!) {\n  calculateTax(input: $input) {\n    ... on CalculateTaxPayloadSuccess {\n      calculationId\n      taxAmount\n      totalAmount\n    }\n    ... on TaxCalculationError {\n      code\n      message\n    }\n  }\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};var i={};function a(e,t){for(var n=0;n<e.definitions.length;n++){var r=e.definitions[n];if(r.name&&r.name.value==t)return r}}r.definitions.forEach(function(e){if(e.name){var t=new Set;!function e(t,n){if("FragmentSpread"===t.kind)n.add(t.name.value);else if("VariableDefinition"===t.kind){var r=t.type;"NamedType"===r.kind&&n.add(r.name.value)}t.selectionSet&&t.selectionSet.selections.forEach(function(t){e(t,n)}),t.variableDefinitions&&t.variableDefinitions.forEach(function(t){e(t,n)}),t.definitions&&t.definitions.forEach(function(t){e(t,n)})}(e,t),i[e.name.value]=t}}),t.exports=r,t.exports.CalculateTax=function(e,t){var n={kind:e.kind,definitions:[a(e,t)]};e.hasOwnProperty("loc")&&(n.loc=e.loc);var r=i[t]||new Set,o=new Set,l=new Set;for(r.forEach(function(e){l.add(e)});l.size>0;){var s=l;l=new Set,s.forEach(function(e){o.has(e)||(o.add(e),(i[e]||new Set).forEach(function(e){l.add(e)}))})}return o.forEach(function(t){var r=a(e,t);r&&n.definitions.push(r)}),n}(r,"CalculateTax")},975773,(e,t,n)=>{var r={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"calculateDiscounts"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"input"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"CalculateDiscountsInput"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"calculateDiscounts"},arguments:[{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"Variable",name:{kind:"Name",value:"input"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"CalculateDiscountsPayloadSuccess"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"discounts"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"amount"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"percentage"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"type"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"deductedPrice"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"amount"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"currencyCode"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"originalPrice"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"amount"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"currencyCode"},arguments:[],directives:[]}]}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"InputValidationError"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"errors"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"field"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"message"},arguments:[],directives:[]}]}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"NotFoundError"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"code"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"message"},arguments:[],directives:[]}]}}]}}]}}],loc:{start:0,end:515}};r.loc.source={body:"query calculateDiscounts($input: CalculateDiscountsInput!) {\n  calculateDiscounts(input: $input) {\n    ... on CalculateDiscountsPayloadSuccess {\n      discounts {\
2n        amount\n        percentage\n        type\n      }\n      deductedPrice {\n        amount\n        currencyCode\n      }\n      originalPrice {\n        amount\n        currencyCode\n      }\n    }\n\n    ... on InputValidationError {\n      errors {\n        field\n        message\n      }\n    }\n\n    ... on NotFoundError {\n      code\n      message\n    }\n  }\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};var i={};function a(e,t){for(var n=0;n<e.definitions.length;n++){var r=e.definitions[n];if(r.name&&r.name.value==t)return r}}r.definitions.forEach(function(e){if(e.name){var t=new Set;!function e(t,n){if("FragmentSpread"===t.kind)n.add(t.name.value);else if("VariableDefinition"===t.kind){var r=t.type;"NamedType"===r.kind&&n.add(r.name.value)}t.selectionSet&&t.selectionSet.selections.forEach(function(t){e(t,n)}),t.variableDefinitions&&t.variableDefinitions.forEach(function(t){e(t,n)}),t.definitions&&t.definitions.forEach(function(t){e(t,n)})}(e,t),i[e.name.value]=t}}),t.exports=r,t.exports.calculateDiscounts=function(e,t){var n={kind:e.kind,definitions:[a(e,t)]};e.hasOwnProperty("loc")&&(n.loc=e.loc);var r=i[t]||new Set,o=new Set,l=new Set;for(r.forEach(function(e){l.add(e)});l.size>0;){var s=l;l=new Set,s.forEach(function(e){o.has(e)||(o.add(e),(i[e]||new Set).forEach(function(e){l.add(e)}))})}return o.forEach(function(t){var r=a(e,t);r&&n.definitions.push(r)}),n}(r,"calculateDiscounts")},598298,e=>{"use strict";var t=e.i(371278);e.s(["Check",()=>t.default])},537143,e=>{"use strict";var t=e.i(384557);e.s(["Minus",()=>t.default])},192118,e=>{"use strict";var t=e.i(268601),n=e.i(766181),r=e.i(975705),i=e.i(956687),a=e.i(385589);let o=r.default.memo(({icon:e})=>(0,t.jsx)("div",{className:"relative box-content flex w-5 h-full items-center align-middle m-0 px-2 leading-none",children:e})),l=(0,n.cva)(["inline-flex items-center justify-center p-2 h-full","text-neutral-700","transition-colors duration-150","focus:outline-none focus-visible:ring-2 focus-visible:ring-cornflower-600"],{variants:{disabled:{true:"cursor-not-allowed opacity-50",false:"cursor-pointer"}},defaultVariants:{disabled:!1}}),s=({children:e,className:n})=>(0,t.jsx)("div",{className:(0,i.cn)("inline-flex items-center h-full divide-neutral-200",n),children:e}),c=(0,n.cva)(["inline-flex items-center w-full h-11 border rounded-sm","transition duration-50 ease-out hover:ease-in","focus-within:outline-none focus-within:ring-2 focus-within:ring-cornflower-600 focus-within:ring-offset-1"],{variants:{disabled:{true:""},hasError:{true:""}},compoundVariants:[{disabled:!0,hasError:!1,class:"cursor-not-allowed text-neutral-400 border-neutral-400 pointer-events-none bg-neutral-50"}
2,{disabled:!1,hasError:!0,class:"border-cherry-800"},{disabled:!1,hasError:!1,class:"border-neutral-200 hover:border-neutral-600"}],defaultVariants:{}}),u=(0,n.cva)("relative inline-flex h-full items-center",{variants:{disabled:{true:"pointer-events-none"}},defaultVariants:{}}),d=(0,n.cva)(["text-neutral-800 text-2xs shadow-none bg-white border-none outline-none rounded-none w-full h-full min-w-0 appearance-none","disabled:cursor-not-allowed disabled:text-neutral-500 disabled:bg-neutral-50","placeholder-neutral-500"],{variants:{isIconLeft:{true:"pl-0",false:"pl-2"},isIconRight:{true:"pr-0",false:"pr-2"}},defaultVariants:{}}),m=(0,n.cva)("p-3",{variants:{isVisible:{true:"visible",false:"invisible"}},defaultVariants:{}}),p=r.default.forwardRef(function({icon:e,iconRight:n,label:l,labelPosition:p="left",error:f,className:h,onClear:x,children:v,disabled:g=!1,readOnly:y=!1,autoComplete:b="off",placeholder:j="",...C},w){let k=(0,r.useRef)(null);(0,r.useImperativeHandle)(w,()=>k.current);let N=null;r.default.Children.forEach(v,e=>{r.default.isValidElement(e)&&e.type===s&&(N=e)});let E=l&&(0,t.jsx)("div",{className:u({disabled:g||!1}),children:l});return(0,t.jsx)("div",{className:"inline-block w-full border-box",children:(0,t.jsxs)("div",{className:c({disabled:g||!1,hasError:f||!1}),children:["left"===p&&E,(0,t.jsxs)("div",{className:"inline-flex align-middle items-center h-full flex-1	select-none	rounded-sm overflow-hidden",children:[e&&(0,t.jsx)(o,{icon:e}),(0,t.jsx)("input",{type:"text",ref:k,id:C.name,className:(0,i.cn)(d({isIconLeft:!!e,isIconRight:!!n||!!N}),h),disabled:g,readOnly:y,autoComplete:b,placeholder:j,...C}),x&&(0,t.jsx)("div",{onClick:x,role:"button",tabIndex:0,className:m({isVisible:""!==C.value}),children:(0,t.jsx)(a.default,{className:"block"})}),n&&(0,t.jsx)(o,{icon:n}),N]}),"right"===p&&E]})})});s.Item=({children:e,onClick:n,disabled:r=!1,className:a,type:o="button","aria-label":s,asChild:c=!1})=>{let u=(0,i.cn)(l({disabled:r}),a);return c?(0,t.jsx)("div",{"aria-label":s,className:u,children:e}):(0,t.jsx)("button",{type:o,onClick:n,disabled:r,"aria-label":s,className:u,children:e})},p.Actions=s,e.s(["default",0,p,"inputContainerVariants",0,c,"inputVariants",0,d],192118)},568470,e=>{"use strict";var t=e.i(315501);e.s(["InputError",()=>t.default])},951850,e=>{"use strict";var t=e.i(268601);e.i(761911);var n=e.i(279184),n=n,r=e.i(766181),i=e.i(642290),a=e.i(956687);let o=(0,r.cva)("text-2xs text-cornflower-700 hover:text-cornflower-400 active:text-cornflower-900",{variants:{isExternal:{true:"inline-flex items-center"}}});e.s(["Link",0,function({children:e,className:r,isExternal:l,...s}){return(0,t.jsxs)(i.default,{...s,className:(0,a.cn)(o({isExternal:l}),r),children:[e,l&&(0,t.jsx)(n.default,{width:12,height:12,className:"ml-1"})]})}],951850)},222733,927752,760998,e=>{"use strict";var t=e.i(268601),n=e.i(766181),r=e.i(975705),i=e.i(156254);let a=(0,n.cva)([],{variants:{hover:{true:"outline-none ring-2 ring-ring ring-offset-1 !ring-cornflower-600"},error:{true:"!border-cherry-800"}}});e.s(["PhoneInput",0,function({name:e,value:n,onChange:o,onFocus:l,onBlur:s,error:c,disabled:u}){let[d,m]=(0,r.useState)(!1),p=c?{borderColor:"#7D2B28"}:void 0;return(0,t.jsx)(i.default,{containerClass:a({hover:d,error:c}),country:"us",value:n,onChange:o,inputProps:{name:e},buttonStyle:p,inputStyle:p,onFocus:e=>{m(!0),l&&l(e)},onBlur:e=>{m(!1),s&&s(e)},disabled:u})}],222733),e.s(["default",0,function(){return(0,t.jsxs)("p",{className:"text-neutral-600 text-2xs",children:["Check this box to opt in to receiving SMS messages from Planoly at the number entered above. For more information visit our platform"," ",(0,t.jsx)("b",{children:(0,t.jsx)("a",{href:"https://www.planoly.com/terms-of-use",children:"Terms Of Service"})})]})}],927752);var o=e.i(951850),l=e.i(184959),s=e.i(960944);e.s(["default",0,function({username:e,policies:n=[]}){let r=(0,l.useIfCustomDomainName)("/policies",`/${e}/policies`),i=n.filter(e=>e?.description!==null);return(0,t.jsxs)("ul",{className:"flex gap-2",children:[(0,t.jsx)("li",{children:(0,t.jsx)(o.Link,{prefetch:!1,href:"https://www.planoly.com/privacy-policy",target:"_blank",children:"Platform Privacy Policy"})},"platform-policy"),i.map(({kind:e})=>(0,t.jsx)("li",{children:(0,t.jsx)(o.Link,{prefetch:!1,href:`${r}/${s.policyToSlug[e]}`,target:"_blank",children:s.mapPolicyKindToTitle[e]})},e))]})}],760998)},601173,e=>{"use strict";var t=e.i(268601),n=e.i(956687);e.s(["Skeleton",0,function({className:e,...r}){return(0,t.jsx)("div",{className:(0,n.cn)("overflow-hidden animate-pulse rounded bg-neutral-200",e),...r})}],601173)},469299,e=>{"use strict";var t=e.i(268601),n=e.i(975705),r=e.i(174617),i=e.i(286542),a=e.i(935408),o=e.i(770110),l=e.i(865552),s=e.i(81079),c=e.i(218403),u=e.i(304068),d=e.i(805606),m=e.i(609701),p=e.i(112448),f=e.i(292050),[h,x]=(0,a.createContextScope)("Tooltip",[s.createPopperScope]),v=(0,s.createPopperScope)(),g="TooltipProvider",y="tooltip.open",[b,j]=h(g),C=e=>
2{let{__scopeTooltip:r,delayDuration:i=700,skipDelayDuration:a=300,disableHoverableContent:o=!1,children:l}=e,s=n.useRef(!0),c=n.useRef(!1),u=n.useRef(0);return n.useEffect(()=>{let e=u.current;return()=>window.clearTimeout(e)},[]),(0,t.jsx)(b,{scope:r,isOpenDelayedRef:s,delayDuration:i,onOpen:n.useCallback(()=>{window.clearTimeout(u.current),s.current=!1},[]),onClose:n.useCallback(()=>{window.clearTimeout(u.current),u.current=window.setTimeout(()=>s.current=!0,a)},[a]),isPointerInTransitRef:c,onPointerInTransitChange:n.useCallback(e=>{c.current=e},[]),disableHoverableContent:o,children:l})};C.displayName=g;var w="Tooltip",[k,N]=h(w),E=e=>{let{__scopeTooltip:r,children:i,open:a,defaultOpen:o,onOpenChange:c,disableHoverableContent:u,delayDuration:d}=e,m=j(w,e.__scopeTooltip),f=v(r),[h,x]=n.useState(null),g=(0,l.useId)(),b=n.useRef(0),C=u??m.disableHoverableContent,N=d??m.delayDuration,E=n.useRef(!1),[P,S]=(0,p.useControllableState)({prop:a,defaultProp:o??!1,onChange:e=>{e?(m.onOpen(),document.dispatchEvent(new CustomEvent(y))):m.onClose(),c?.(e)},caller:w}),F=n.useMemo(()=>P?E.current?"delayed-open":"instant-open":"closed",[P]),T=n.useCallback(()=>{window.clearTimeout(b.current),b.current=0,E.current=!1,S(!0)},[S]),I=n.useCallback(()=>{window.clearTimeout(b.current),b.current=0,S(!1)},[S]),R=n.useCallback(()=>{window.clearTimeout(b.current),b.current=window.setTimeout(()=>{E.current=!0,S(!0),b.current=0},N)},[N,S]);return n.useEffect(()=>()=>{b.current&&(window.clearTimeout(b.current),b.current=0)},[]),(0,t.jsx)(s.Root,{...f,children:(0,t.jsx)(k,{scope:r,contentId:g,open:P,stateAttribute:F,trigger:h,onTriggerChange:x,onTriggerEnter:n.useCallback(()=>{m.isOpenDelayedRef.current?R():T()},[m.isOpenDelayedRef,R,T]),onTriggerLeave:n.useCallback(()=>{C?I():(window.clearTimeout(b.current),b.current=0)},[I,C]),onOpen:T,onClose:I,disableHoverableContent:C,children:i})})};E.displayName=w;var P="TooltipTrigger",S=n.forwardRef((e,a)=>{let{__scopeTooltip:o,...l}=e,c=N(P,o),u=j(P,o),m=v(o),p=n.useRef(null),f=(0,i.useComposedRefs)(a,p,c.onTriggerChange),h=n.useRef(!1),x=n.useRef(!1),g=n.useCallback(()=>h.current=!1,[]);return n.useEffect(()=>()=>document.removeEventListener("pointerup",g),[g]),(0,t.jsx)(s.Anchor,{asChild:!0,...m,children:(0,t.jsx)(d.Primitive.button,{"aria-describedby":c.open?c.contentId:void 0,"data-state":c.stateAttribute,...l,ref:f,onPointerMove:(0,r.composeEventHandlers)(e.onPointerMove,e=>{"touch"!==e.pointerType&&(x.current||u.isPointerInTransitRef.current||(c.onTriggerEnter(),x.current=!0))}),onPointerLeave:(0,r.composeEventHandlers)(e.onPointerLeave,()=>{c.onTriggerLeave(),x.current=!1}),onPointerDown:(0,r.composeEventHandlers)(e.onPointerDown,()=>{c.open&&c.onClose(),h.current=!0,document.addEventListener("pointerup",g,{once:!0})}),onFocus:(0,r.composeEventHandlers)(e.onFocus,()=>{h.current||c.onOpen()}),onBlur:(0,r.composeEventHandlers)(e.onBlur,c.onClose),onClick:(0,r.composeEventHandlers)(e.onClick,c.onClose)})})});S.displayName=P;var F="TooltipPortal",[T,I]=h(F,{forceMount:void 0}),R=e=>{let{__scopeTooltip:n,forceMount:r,children:i,container:a}=e,o=N(F,n);return(0,t.jsx)(T,{scope:n,forceMount:r,children:(0,t.jsx)(u.Presence,{present:r||o.open,children:(0,t.jsx)(c.Portal,{asChild:!0,container:a,children:i})})})};R.displayName=F;var A="TooltipContent",D=n.forwardRef((e,n)=>{let r=I(A,e.__scopeTooltip),{forceMount:i=r.forceMount,side:a="top",...o}=e,l=N(A,e.__scopeTooltip);return(0,t.jsx)(u.Presence,{present:i||l.open,children:l.disableHoverableContent?(0,t.jsx)(V,{side:a,...o,ref:n}):(0,t.jsx)(L,{side:a,...o,ref:n})})}),L=n.forwardRef((e,r)=>{let a=N(A,e.__scopeTooltip),o=j(A,e.__scopeTooltip),l=n.useRef(null),s=(0,i.useComposedRefs)(r,l),[c,u]=n.useState(null),{trigger:d,onClose:m}=a,p=l.current,{onPointerInTransitChange:f}=o,h=n.useCallback(()=>{u(null),f(!1)},[f]),x=n.useCallback((e,t)=>{let n,r=e.currentTarget,i={x:e.clientX,y:e.clientY},a=function(e,t){let n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),i=Math.abs(t.right-e.x),a=Math.abs(t.left-e.x);switch(Math.min(n,r,i,a)){case a:return"left";case i:return"right";case n:return"top";case r:return"bottom";default:throw Error("unreachable")}}(i,r.getBoundingClientRect());u(((n=[...function(e,t,n=5){let r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n})}return r}(i,a),...function(e){let{top:t,right:n,bottom:r,left:i}=e;return[{x:i,y:t},{x:n,y:t},{x:n,y:r},{x:i,y:r}]}(t.getBoundingClientRect())].slice()).sort((e,t)=>
2e.x<t.x?-1:e.x>t.x?1:e.y<t.y?-1:1*!!(e.y>t.y)),function(e){if(e.length<=1)return e.slice();let t=[];for(let n=0;n<e.length;n++){let r=e[n];for(;t.length>=2;){let e=t[t.length-1],n=t[t.length-2];if((e.x-n.x)*(r.y-n.y)>=(e.y-n.y)*(r.x-n.x))t.pop();else break}t.push(r)}t.pop();let n=[];for(let t=e.length-1;t>=0;t--){let r=e[t];for(;n.length>=2;){let e=n[n.length-1],t=n[n.length-2];if((e.x-t.x)*(r.y-t.y)>=(e.y-t.y)*(r.x-t.x))n.pop();else break}n.push(r)}return(n.pop(),1===t.length&&1===n.length&&t[0].x===n[0].x&&t[0].y===n[0].y)?t:t.concat(n)}(n))),f(!0)},[f]);return n.useEffect(()=>()=>h(),[h]),n.useEffect(()=>{if(d&&p){let e=e=>x(e,p),t=e=>x(e,d);return d.addEventListener("pointerleave",e),p.addEventListener("pointerleave",t),()=>{d.removeEventListener("pointerleave",e),p.removeEventListener("pointerleave",t)}}},[d,p,x,h]),n.useEffect(()=>{if(c){let e=e=>{let t=e.target,n={x:e.clientX,y:e.clientY},r=d?.contains(t)||p?.contains(t),i=!function(e,t){let{x:n,y:r}=e,i=!1;for(let e=0,a=t.length-1;e<t.length;a=e++){let o=t[e],l=t[a],s=o.x,c=o.y,u=l.x,d=l.y;c>r!=d>r&&n<(u-s)*(r-c)/(d-c)+s&&(i=!i)}return i}(n,c);r?h():i&&(h(),m())};return document.addEventListener("pointermove",e),()=>document.removeEventListener("pointermove",e)}},[d,p,c,m,h]),(0,t.jsx)(V,{...e,ref:s})}),[O,M]=h(w,{isInside:!1}),_=(0,m.createSlottable)("TooltipContent"),V=n.forwardRef((e,r)=>{let{__scopeTooltip:i,children:a,"aria-label":l,onEscapeKeyDown:c,onPointerDownOutside:u,...d}=e,m=N(A,i),p=v(i),{onClose:h}=m;return n.useEffect(()=>(document.addEventListener(y,h),()=>document.removeEventListener(y,h)),[h]),n.useEffect(()=>{if(m.trigger){let e=e=>{let t=e.target;t?.contains(m.trigger)&&h()};return window.addEventListener("scroll",e,{capture:!0}),()=>window.removeEventListener("scroll",e,{capture:!0})}},[m.trigger,h]),(0,t.jsx)(o.DismissableLayer,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:c,onPointerDownOutside:u,onFocusOutside:e=>e.preventDefault(),onDismiss:h,children:(0,t.jsxs)(s.Content,{"data-state":m.stateAttribute,...p,...d,ref:r,style:{...d.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[(0,t.jsx)(_,{children:a}),(0,t.jsx)(O,{scope:i,isInside:!0,children:(0,t.jsx)(f.Root,{id:m.contentId,role:"tooltip",children:l||a})})]})})});D.displayName=A;var H="TooltipArrow",B=n.forwardRef((e,n)=>{let{__scopeTooltip:r,...i}=e,a=v(r);return M(H,r).isInside?null:(0,t.jsx)(s.Arrow,{...a,...i,ref:n})});B.displayName=H;var $=e.i(956687);e.s(["Tooltip",0,function({side:e="top",delay:n=0,noArrow:r=!1,content:i,children:a,className:o}){return(0,t.jsx)(C,{delayDuration:n,children:(0,t.jsxs)(E,{children:[(0,t.jsx)(S,{asChild:!0,children:a}),(0,t.jsx)(R,{children:(0,t.jsxs)(D,{className:(0,$.cn)("z-50 overflow-hidden rounded-sm bg-neutral-1000 px-3 py-2 text-white shadow-md w-auto text-3xs",o),side:e,children:[i,!r&&(0,t.jsx)(B,{className:"fill-icon-hovered",asChild:!0,children:(0,t.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"5",fill:"none",viewBox:"0 0 24 5",children:(0,t.jsx)("path",{fill:"#191919",d:"M24 0H0h4.257c1.025 0 1.99.273 2.606.738l3.834 2.893C12 4.5 12 4.5 13.303 3.631L17.137.738C17.752.273 18.717 0 19.743 0H24z"})})})]})})]})})}],469299)}]);
3
4//# debugId=0c103d2b-610b-8d13-f15b-7285b88b456a

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.