PageSourceSearch

https://jomafilms.com/_next/static/chunks/4422-8c1b8bc69b24597f.js?dpl=dpl_3SEzS5pXVR9EftmEZQDjEVyX4aqf

js jomafilms.com collected 2026-10-09 02:00:08 UTC 9,326 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4422],{26272:(e,t,r)=>{r.d(t,{Kx:()=>u,Ml:()=>l,Qj:()=>f,Xf:()=>s,eK:()=>c,gm:()=>d,l$:()=>m});var n=r(72127),o=r(65380);function i(){let e=(0,o.S)();if(!e)return{};let t={};return e.source&&(t.utm_source=e.source),e.medium&&(t.utm_medium=e.medium),e.campaign&&(t.utm_campaign=e.campaign),e.content&&(t.utm_content=e.content),e.term&&(t.utm_term=e.term),t}function a(e,t){let r=(0,n.U0)();if(r){let n=i();r.capture(e,{...n,...t})}}function u(e,t,r,n,o){a("film_viewed",{film_id:e,film_title:t,curator_code:r,org_id:null!=n?n:void 0,...o})}function c(e,t,r,n,o){a("list_viewed",{list_id:e,list_slug:t,list_kind:r,org_id:n,...o})}function l(e,t,r,n){a("add_to_cart",{film_id:e,item_type:t,curator_code:r,org_id:n})}function s(e){a("checkout_started",e)}function f(e){let t=(0,n.U0)();if(t){let r=i(),n=e.film_ids&&1===e.film_ids.length?e.film_ids[0]:void 0;t.capture("purchase_completed",{...r,...e,$insert_id:e.transaction_id,order_id:e.transaction_id,...n&&{film_id:n},...e.primary_org_id&&{org_id:e.primary_org_id},...e.primary_org_id&&{$groups:{organization:e.primary_org_id}}})}}function d(e,t){let r=(0,n.U0)();if(!r)return;let i=(0,o.S)(),a={};(null==i?void 0:i.source)&&(a.first_utm_source=i.source),(null==i?void 0:i.medium)&&(a.first_utm_medium=i.medium),(null==i?void 0:i.campaign)&&(a.first_utm_campaign=i.campaign),(null==i?void 0:i.content)&&(a.first_utm_content=i.content),(null==i?void 0:i.term)&&(a.first_utm_term=i.term),r.identify(e,t,Object.keys(a).length>0?a:void 0)}function m(e,t){let r=(0,n.U0)();r&&r.group("organization",e,t)}},47387:(e,t,r)=>{r.d(t,{Q:()=>a});var n=r(54568),o=r(7620),i=r(89449);function a(e){let{value:t,onChange:r,onApply:a,onDismiss:u,dismissOnBlur:c=!1,busy:l=!1,alreadyApplied:s=!1,allowDashes:f=!1,maxLength:d=i.ne,minLength:m=i.AP,placeholder:p="Enter code",autoFocus:_=!1,ariaLabel:g="Curator or discount code",className:h,formClassName:v="flex items-center gap-2",buttonClassName:x,children:S}=e,y=(0,o.useRef)(null);return(0,n.jsxs)("form",{ref:y,onSubmit:function(e){if(e.preventDefault(),l||s)return;let r=t.trim();r.length<m||a(r)},onBlur:function(e){var t;c&&u&&!l&&(e.relatedTarget&&(null==(t=y.current)?void 0:t.contains(e.relatedTarget))||u())},className:v,children:[(0,n.jsx)("input",{type:"text",value:t,onChange:e=>r((0,i.JF)(e.target.value,{allowDashes:f,maxLength:d})),onKeyDown:e=>{"Escape"===e.key&&u&&u()},placeholder:p,maxLength:d,autoFocus:_,"aria-label":g,enterKeyHint:"done",autoCorrect:"off",autoCapitalize:"characters",spellCheck:!1,className:h}),(0,n.jsx)("button",{type:"submit",disabled:l||s||t.trim().length<m,onPointerDown:e=>e.preventDefault(),className:x,children:l?"...":"Apply"}),S]})}},55742:(e,t,r)=>{r.d(t,{E1:()=>u,Xj:()=>d,dG:()=>m,qc:()=>c,vU:()=>l});var n=r(89449),o=r(66276),i=r(98225);let a="joma_curator";function u(){if("undefined"==typeof document)return;let e=document.cookie.match(new RegExp("(?:^|;\\s*)".concat(o.E4,"=([^;]*)")));return(null==e?void 0:e[1])||void 0}function c(e,t,r){if("undefined"==typeof document)return;let{baseCode:i,discount:u}=(0,n.nm)(e);document.cookie="".concat(o.E4,"=").concat(i,"; path=/; max-age=").concat(o._A,"; samesite=lax");let c={curatorName:null==r?void 0:r.curatorName,orgId:null==r?void 0:r.orgId};if(null!==u&&u>0)if(c.suffixSetAt=Date.now(),t){c.suffixScope="film";let e=s(),r=(null==e?void 0:e.suffixScope)==="film"&&e.suffixFilms?{...e.suffixFilms}:{};r[t]=u,c.suffixFilms=r}else c.suffixScope="all",c.suffix=u;(function(e){if("undefined"!=typeof localStorage){localStorage.setItem(a,JSON.stringify(e));try{localStorage.removeItem("joma_curator_suffix")}catch(e){}}})(c),window.dispatchEvent(new CustomEvent("curator-code-updated",{detail:r}))}function l(){"undefined"!=typeof document&&(document.cookie="".concat(o.E4,"=; path=/; max-age=0; samesite=lax"),function(){if("undefined"!=typeof localStorage){localStorage.removeItem(a);try{localStorage.removeItem("joma_curator_suffix")}catch(e){}}}(),window.dispatchEvent(new CustomEvent("curator-code-updated")))}function s(){if("undefined"==typeof localStorage)return null;try{let e=localStorage.getItem(a);if(!e)return null;return JSON.parse(e)}catch(e){return null}}function f(e){return!e.suffixSetAt||Date.now()-e.suffixSetAt>60*i.ZF*6e4}function d(){var e;let t=s();return!t||"all"!==t.suffixScope||f(t)?null:null!=(e=t.suffix)?e:null}function m(e,t){if(!e||e.length<3)return;if(/\d+$/.test(e))return e;let r=function(e){var t;let r=s();return!r||f(r)?null:"all"===r.suffixScope&&null!=r.suffix?r.suffix:"film"===r.suffixScope&&r.suffixFilms&&null!=(t=r.suffixFilms[e])?t
1:null}(t);return r?"".concat(e).concat(r):e}},65380:(e,t,r)=>{r.d(t,{S:()=>n});function n(){if("undefined"==typeof document)return null;let e=document.cookie.split("; ").find(e=>e.startsWith("".concat("joma_utm","=")));if(!e)return null;try{return JSON.parse(decodeURIComponent(e.split("=").slice(1).join("=")))}catch(e){return null}}},66276:(e,t,r)=>{r.d(t,{E4:()=>n,_A:()=>o});let n="joma_curator_code",o=2592e3},72127:(e,t,r)=>{r.d(t,{U0:()=>l,hR:()=>a});var n=r(89211),o=r(80967),i=r(40459);let a="phc_D8ce8YDk2f6Nc4k0VnOSWU4xlTGWXYZ1sdy8JbLNIwn",u=i.env.NEXT_PUBLIC_POSTHOG_HOST||"https://us.i.posthog.com",c=!1;function l(e){return!c&&a&&(n.Ay.init(a,{api_host:u,capture_pageview:!1,capture_pageleave:!0,disable_session_recording:!0,disable_surveys:!0,persistence:"localStorage+cookie",sanitize_properties:e=>(0,o.d7)(e)}),c=!0),e&&c&&n.Ay.register(e),n.Ay}},76859:(e,t,r)=>{r.d(t,{D:()=>u,ThemeProvider:()=>a});var n=r(54568),o=r(7620);let i=(0,o.createContext)(void 0);function a(e){let{children:t,defaultTheme:r="dark"}=e,[a,u]=(0,o.useState)(r),[c,l]=(0,o.useState)(!1);return(0,o.useEffect)(()=>{let e=localStorage.getItem("theme");e&&("light"===e||"dark"===e)&&u(e),l(!0)},[]),(0,o.useEffect)(()=>{if(c){let e=document.documentElement;e.classList.add("no-transition"),"dark"===a?e.setAttribute("data-theme","dark"):e.removeAttribute("data-theme"),localStorage.setItem("theme",a),document.cookie="theme=".concat(a,"; path=/; max-age=31536000; SameSite=Lax"),setTimeout(()=>{e.classList.remove("no-transition")},50)}},[a,c]),(0,n.jsx)(i.Provider,{value:{theme:a,setTheme:u,toggleTheme:()=>{u(e=>"dark"===e?"light":"dark")}},children:t})}function u(){let e=(0,o.useContext)(i);if(void 0===e)throw Error("useTheme must be used within a ThemeProvider");return e}},80967:(e,t,r)=>{r.d(t,{HE:()=>n,Ph:()=>a,Qg:()=>u,d7:()=>c});let n=["token","session_id","code"],o=new Set(["$current_url","$pathname","$referrer","$initial_current_url","$initial_pathname","$initial_referrer","attribution_url"]);function i(e){if(!e)return"";let t=new URLSearchParams(e.startsWith("?")?e.slice(1):e);for(let e of n)t.delete(e);return t.toString()}function a(e){if(!e)return e;let t=e.indexOf("#"),r=t>=0?e.slice(t):"",n=t>=0?e.slice(0,t):e,o=n.indexOf("?");if(o<0)return e;let a=n.slice(0,o),u=n.slice(o+1),c=i(u);
1return c===u?e:"".concat(a).concat(c?"?".concat(c):"").concat(r)}function u(e,t,r){let n=i(r);return"".concat(e).concat(t).concat(n?"?".concat(n):"")}function c(e){if(!e)return e;let t=null;for(let[r,n]of Object.entries(e)){if("string"!=typeof n||!(o.has(r)||r.endsWith("_url")||r.endsWith("_URL")))continue;let i=a(n);i!==n&&((t=null!=t?t:{...e})[r]=i)}return null!=t?t:e}},89449:(e,t,r)=>{r.d(t,{AP:()=>a,JF:()=>u,iM:()=>i,ne:()=>o,nm:()=>c});let n=/^([A-Za-z]{3,10})(\d{1,3})?$/,o=13,i=30,a=3;function u(e){let{allowDashes:t=!1,maxLength:r=o}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e.toUpperCase().replace(t?/[^A-Z0-9-]/g:/[^A-Z0-9]/g,"").slice(0,r)}function c(e){let t=e.match(n);return t?{baseCode:t[1].toUpperCase(),discount:t[2]?parseInt(t[2],10):null}:{baseCode:e.toUpperCase(),discount:null}}},97675:(e,t,r)=>{r.d(t,{u:()=>u});var n=r(12247);let o=(0,n.createServerReference)("401938e521aa65109c7a65badef133ea8bcf29da90",n.callServer,void 0,n.findSourceMapURL,"validateCuratorCodeAction"),i=(0,n.createServerReference)("40231435c0b51a4254064bca703e954bbf737fb197",n.callServer,void 0,n.findSourceMapURL,"syncCuratorCodeToCartAction");var a=r(55742);async function u(e,t){let r=e.trim().toUpperCase();if(r.length<3)return{success:!1,error:"Code too short"};let n=await o(r);return n.success&&n.fullCode?((0,a.qc)(n.fullCode,t,{curatorName:n.curatorName,orgId:n.orgId}),i(n.fullCode),{success:!0,curatorName:n.curatorName,orgId:n.orgId,fullCode:n.fullCode}):{success:!1,error:n.error||"Code not recognized"}}},98225:(e,t,r)=>{function n(e){return e<=0?0:Math.round(20*Math.min(e,3e3)/100+10*Math.max(0,e-3e3)/100)}r.d(t,{AH:()=>i,EM:()=>p,HF:()=>u,Qg:()=>d,T6:()=>o,Vc:()=>a,ZF:()=>s,cp:()=>m,ev:()=>c,xQ:()=>l,yP:()=>f});let o=10,i=10,a=80,u=2.9,c=30,l=[100,200,500],s=48,f=299;function d(e){return e<f?0:a}function m(e){if(e<=0)return null;if(e<f){let t=(f/100).toFixed(2),r=(e/100).toFixed(2);return"Minimum price is $".concat(t,". You set $").concat(r,".")}return null}function p(e,t){let r=Math.round(e*t/100),o=n(e),i=n(e),a=Math.min(r,e-i),u=Math.min(r,Math.max(0,e-f)),c=e-u,l=n(c),s=r-u;return{retail:e,pool:r,direct:{customerPays:e,platformFee:o,filmmakerReceives:e-o},codeNoDiscount:{customerPays:e,platformFee:i,curatorEarns:a,filmmakerReceives:e-i-a},codeMaxDiscount:{customerPays:c,platformFee:l,curatorEarns:s,filmmakerReceives:c-l-s}}}}}]);

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.