{
  "version": 3,
  "sources": ["/cdn/shop/t/5/assets/custom-artwork-cropper-mode.js?psv=home-personalizer-v1-20260819"],
  "sourcesContent": ["(() => {\n  const ratios = Object.freeze({\n    landscape: Math.SQRT2,\n    square: 1,\n    portrait: 1 / Math.SQRT2,\n  });\n\n  const isPreset = (option) => Object.prototype.hasOwnProperty.call(ratios, option);\n\n  const select = (option, supportsFreeform = false) => {\n    if (option === 'freeform' && supportsFreeform) {\n      return { cropMode: 'freeform', orientation: 'custom' };\n    }\n    if (!isPreset(option)) return null;\n    return { cropMode: 'fixed', orientation: option };\n  };\n\n  const selectedOption = (state) => state?.cropMode === 'freeform' ? 'freeform' : state?.orientation || '';\n  const isFreeform = (state) => state?.cropMode === 'freeform';\n  const outputOrientation = (state) => isFreeform(state) ? 'custom' : state?.orientation || 'custom';\n\n  globalThis.PosterCropMode = {\n    ratios,\n    isPreset,\n    select,\n    selectedOption,\n    isFreeform,\n    outputOrientation,\n  };\n})();\n"],
  "mappings": "CAAC,IAAM,CACL,MAAM,OAAS,OAAO,OAAO,CAC3B,UAAW,KAAK,MAChB,OAAQ,EACR,SAAU,EAAI,KAAK,KACrB,CAAC,EAEK,SAAY,QAAW,OAAO,UAAU,eAAe,KAAK,OAAQ,MAAM,EAE1E,OAAS,CAAC,OAAQ,iBAAmB,KACrC,SAAW,YAAc,iBACpB,CAAE,SAAU,WAAY,YAAa,QAAS,EAElD,SAAS,MAAM,EACb,CAAE,SAAU,QAAS,YAAa,MAAO,EADlB,KAI1B,eAAkB,OAAU,OAAO,WAAa,WAAa,WAAa,OAAO,aAAe,GAChG,WAAc,OAAU,OAAO,WAAa,WAC5C,kBAAqB,OAAU,WAAW,KAAK,EAAI,SAAW,OAAO,aAAe,SAE1F,WAAW,eAAiB,CAC1B,OACA,SACA,OACA,eACA,WACA,iBACF,CACF,GAAG",
  "names": []
}
