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]="ba99f7c9-6194-bde2-34eb-099780543616")}catch(e){}}(); 2(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,130668,(e,t,r)=>{var i="u">typeof globalThis&&globalThis||"u">typeof self&&self||e.g,n=function(){function e(){this.fetch=!1,this.DOMException=i.DOMException}return e.prototype=i,new e}();(function(t){var r=void 0!==n&&n||"u">typeof self&&self||e.g||{},i={searchParams:"URLSearchParams"in r,iterable:"Symbol"in r&&"iterator"in Symbol,blob:"FileReader"in r&&"Blob"in r&&function(){try{return new Blob,!0}catch(e){return!1}}(),formData:"FormData"in r,arrayBuffer:"ArrayBuffer"in r};if(i.arrayBuffer)var o=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],l=ArrayBuffer.isView||function(e){return e&&o.indexOf(Object.prototype.toString.call(e))>-1};function a(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||""===e)throw TypeError('Invalid character in header field name: "'+e+'"');return e.toLowerCase()}function s(e){return"string"!=typeof e&&(e=String(e)),e}function d(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return i.iterable&&(t[Symbol.iterator]=function(){return t}),t}function c(e){this.map={},e instanceof c?e.forEach(function(e,t){this.append(t,e)},this):Array.isArray(e)?e.forEach(function(e){if(2!=e.length)throw TypeError("Headers constructor: expected name/value pair to be length 2, found"+e.length);this.append(e[0],e[1])},this):e&&Object.getOwnPropertyNames(e).forEach(function(t){this.append(t,e[t])},this)}function u(e){if(!e._noBody){if(e.bodyUsed)return Promise.reject(TypeError("Already read"));e.bodyUsed=!0}}function p(e){return new Promise(function(t,r){e.onload=function(){t(e.result)},e.onerror=function(){r(e.error)}})}function f(e){var t=new FileReader,r=p(t);return t.readAsArrayBuffer(e),r}function h(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function m(){return this.bodyUsed=!1,this._initBody=function(e){if(this.bodyUsed=this.bodyUsed,this._bodyInit=e,e)if("string"==typeof e)this._bodyText=e;else if(i.blob&&Blob.prototype.isPrototypeOf(e))this._bodyBlob=e;else if(i.formData&&FormData.prototype.isPrototypeOf(e))this._bodyFormData=e;else if(i.searchParams&&URLSearchParams.prototype.isPrototypeOf(e))this._bodyText=e.toString();else{var t;i.arrayBuffer&&i.blob&&(t=e)&&DataView.prototype.isPrototypeOf(t)?(this._bodyArrayBuffer=h(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):i.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(e)||l(e))?this._bodyArrayBuffer=h(e):this._bodyText=e=Object.prototype.toString.call(e)}else this._noBody=!0,this._bodyText="";!this.headers.get("content-type")&&("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):i.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},i.blob&&(this.blob=function(){var e=u(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(!this._bodyFormData)return Promise.resolve(new Blob([this._bodyText]));throw Error("could not read FormData body as blob")}),this.arrayBuffer=function(){if(this._bodyArrayBuffer){var e=u(this);return e||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}if(i.blob)return this.blob().then(f);throw Error("could not read as ArrayBuffer")},this.text=function(){var e,t,r,i,n,o=u(this);if(o)return o;if(this._bodyBlob)return e=this._bodyBlob,r=p(t=new FileReader),n=(i=/charset=([A-Za-z0-9_-]+)/.exec(e.type))?i[1]:"utf-8",t.readAsText(e,n),r;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),r=Array(t.length),i=0;i<t.length;i++)r[i]=String.fromCharCode(t[i]);return r.join("")}(this._bodyArrayBuffer));if(!this._bodyFormData)return Promise.resolve(this._bodyText);throw Error("could not read FormData body as text")},i.formData&&(this.formData=function(){return this.text().then(y)}),this.json=function(){return this.text().then(JSON.parse)},this}c.prototype.append=function(e,t){e=a(e),t=s(t);var r=this.map[e];this.map[e]=r?r+", "+t:t},c.prototype.delete=function(e){delete this.map[a(e)]},c.prototype.get=function(e){return e=a(e),this.has(e)?this.map[e]:null},c.prototype.has=function(e){return this.map.hasOwnProperty(a(e))},c.prototype.set=function(e,t){this.map[a(e)]=s(t)},c.prototype.forEach=function(e,t){for(var r in this.map)this.map.hasOwnProperty(r)&&e.call(t,this.map[r],r,this)},c.prototype.keys=function(){var e=[];return this.forEach(function(t,r){e.push(r)}),d(e)},c.prototype.values=function(){var e=[];return this.forEach(function(t){e.push(t)}),d(e)},c.prototype.entries=function(){var e=[];return this.forEach(function(t,r){e.push([r,t])}),d(e)},i.iterable&&(c.prototype[Symbol.iterator]=c.prototype.entries);var g=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function x(e,t){if(!(this instanceof x))throw TypeError('Please use the "new" operator, this DOM object c
2onstructor cannot be called as a function.');var i,n,o=(t=t||{}).body;if(e instanceof x){if(e.bodyUsed)throw TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new c(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,o||null==e._bodyInit||(o=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",(t.headers||!this.headers)&&(this.headers=new c(t.headers)),this.method=(n=(i=t.method||this.method||"GET").toUpperCase(),g.indexOf(n)>-1?n:i),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal||function(){if("AbortController"in r)return new AbortController().signal}(),this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&o)throw TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(o),("GET"===this.method||"HEAD"===this.method)&&("no-store"===t.cache||"no-cache"===t.cache)){var l=/([?&])_=[^&]*/;l.test(this.url)?this.url=this.url.replace(l,"$1_="+new Date().getTime()):this.url+=(/\?/.test(this.url)?"&":"?")+"_="+new Date().getTime()}}function y(e){var t=new FormData;return e.trim().split("&").forEach(function(e){if(e){var r=e.split("="),i=r.shift().replace(/\+/g," "),n=r.join("=").replace(/\+/g," ");t.append(decodeURIComponent(i),decodeURIComponent(n))}}),t}function b(e,t){if(!(this instanceof b))throw TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.status<200||this.status>599)throw RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this.ok=this.status>=200&&this.status<300,this.statusText=void 0===t.statusText?"":""+t.statusText,this.headers=new c(t.headers),this.url=t.url||"",this._initBody(e)}x.prototype.clone=function(){return new x(this,{body:this._bodyInit})},m.call(x.prototype),m.call(b.prototype),b.prototype.clone=function(){return new b(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new c(this.headers),url:this.url})},b.error=function(){var e=new b(null,{status:200,statusText:""});return e.ok=!1,e.status=0,e.type="error",e};var v=[301,302,303,307,308];b.redirect=function(e,t){if(-1===v.indexOf(t))throw RangeError("Invalid status code");return new b(null,{status:t,headers:{location:e}})},t.DOMException=r.DOMException;try{new t.DOMException}catch(e){t.DOMException=function(e,t){this.message=e,this.name=t;var r=Error(e);this.stack=r.stack},t.DOMException.prototype=Object.create(Error.prototype),t.DOMException.prototype.constructor=t.DOMException}function w(e,n){return new Promise(function(o,l){var d=new x(e,n);if(d.signal&&d.signal.aborted)return l(new t.DOMException("Aborted","AbortError"));var u=new XMLHttpRequest;function p(){u.abort()}if(u.onload=function(){var e,t,r={statusText:u.statusText,headers:(e=u.getAllResponseHeaders()||"",t=new c,e.replace(/\r?\n[\t ]+/g," ").split("\r").map(function(e){return 0===e.indexOf("\n")?e.substr(1,e.length):e}).forEach(function(e){var r=e.split(":"),i=r.shift().trim();if(i){var n=r.join(":").trim();try{t.append(i,n)}catch(e){console.warn("Response "+e.message)}}}),t)};0===d.url.indexOf("file://")&&(u.status<200||u.status>599)?r.status=200:r.status=u.status,r.url="responseURL"in u?u.responseURL:r.headers.get("X-Request-URL");var i="response"in u?u.response:u.responseText;setTimeout(function(){o(new b(i,r))},0)},u.onerror=function(){setTimeout(function(){l(TypeError("Network request failed"))},0)},u.ontimeout=function(){setTimeout(function(){l(TypeError("Network request timed out"))},0)},u.onabort=function(){setTimeout(function(){l(new t.DOMException("Aborted","AbortError"))},0)},u.open(d.method,function(e){try{return""===e&&r.location.href?r.location.href:e}catch(t){return e}}(d.url),!0),"include"===d.credentials?u.withCredentials=!0:"omit"===d.credentials&&(u.withCredentials=!1),"responseType"in u&&(i.blob?u.responseType="blob":i.arrayBuffer&&(u.responseType="arraybuffer")),n&&"object"==typeof n.headers&&!(n.headers instanceof c||r.Headers&&n.headers instanceof r.Headers)){var f=[];
2Object.getOwnPropertyNames(n.headers).forEach(function(e){f.push(a(e)),u.setRequestHeader(e,s(n.headers[e]))}),d.headers.forEach(function(e,t){-1===f.indexOf(t)&&u.setRequestHeader(t,e)})}else d.headers.forEach(function(e,t){u.setRequestHeader(t,e)});d.signal&&(d.signal.addEventListener("abort",p),u.onreadystatechange=function(){4===u.readyState&&d.signal.removeEventListener("abort",p)}),u.send(void 0===d._bodyInit?null:d._bodyInit)})}w.polyfill=!0,r.fetch||(r.fetch=w,r.Headers=c,r.Request=x,r.Response=b),t.Headers=c,t.Request=x,t.Response=b,t.fetch=w,Object.defineProperty(t,"__esModule",{value:!0})})({}),n.fetch.ponyfill=!0,delete n.fetch.polyfill;var o=i.fetch?i:n;(r=o.fetch).default=o.fetch,r.fetch=o.fetch,r.Headers=o.Headers,r.Request=o.Request,r.Response=o.Response,t.exports=r},911617,(e,t,r)=>{"use strict";function i(e){return e>=48&&e<=57}function n(e){return e>=97&&e<=122||e>=65&&e<=90}Object.defineProperty(r,"__esModule",{value:!0}),r.isDigit=i,r.isLetter=n,r.isNameContinue=function(e){return n(e)||i(e)||95===e},r.isNameStart=function(e){return n(e)||95===e},r.isWhiteSpace=function(e){return 9===e||32===e}},756094,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.dedentBlockStringLines=function(e){var t,r;let n=Number.MAX_SAFE_INTEGER,o=null,l=-1;for(let t=0;t<e.length;++t){let a=e[t],s=function(e){let t=0;for(;t<e.length&&(0,i.isWhiteSpace)(e.charCodeAt(t));)++t;return t}(a);s!==a.length&&(o=null!=(r=o)?r:t,l=t,0!==t&&s<n&&(n=s))}return e.map((e,t)=>0===t?e:e.slice(n)).slice(null!=(t=o)?t:0,l+1)},r.isPrintableAsBlockString=function(e){if(""===e)return!0;let t=!0,r=!1,i=!0,n=!1;for(let o=0;o<e.length;++o)switch(e.codePointAt(o)){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 11:case 12:case 14:case 15:case 13:return!1;case 10:if(t&&!n)return!1;n=!0,t=!0,r=!1;break;case 9:case 32:r||(r=t);break;default:i&&(i=r),t=!1}return!t&&(!i||!n)},r.printBlockString=function(e,t){let r=e.replace(/"""/g,'\\"""'),n=r.split(/\r\n|[\n\r]/g),o=1===n.length,l=n.length>1&&n.slice(1).every(e=>0===e.length||(0,i.isWhiteSpace)(e.charCodeAt(0))),a=r.endsWith('\\"""'),s=e.endsWith('"')&&!a,d=e.endsWith("\\"),c=s||d,u=!(null!=t&&t.minimize)&&(!o||e.length>70||c||l||a),p="",f=o&&(0,i.isWhiteSpace)(e.charCodeAt(0));return(u&&!f||l)&&(p+="\n"),p+=r,(u||c)&&(p+="\n"),'"""'+p+'"""'};var i=e.r(911617)},803043,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.printString=function(e){return`"${e.replace(i,n)}"`};let i=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function n(e){return o[e.charCodeAt(0)]}let o=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000B","\\f","\\r","\\u000E","\\u000F","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001A","\\u001B","\\u001C","\\u001D","\\u001E","\\u001F","","",'\\"',"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\\\","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\u007F","\\u0080","\\u0081","\\u0082","\\u0083","\\u0084","\\u0085","\\u0086","\\u0087","\\u0088","\\u0089","\\u008A","\\u008B","\\u008C","\\u008D","\\u008E","\\u008F","\\u0090","\\u0091","\\u0092","\\u0093","\\u0094","\\u0095","\\u0096","\\u0097","\\u0098","\\u0099","\\u009A","\\u009B","\\u009C","\\u009D","\\u009E","\\u009F"]},497888,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.devAssert=function(e,t){if(!e)throw Error(t)}},692757,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.inspect=function(e){return function e(t,r){switch(typeof t){case"string":return JSON.stringify(t);case"function":return t.name?`[function ${t.name}]`:"[function]";case"object":return function(t,r){let i;if(null===t)return"null";if(r.includes(t))return"[Circular]";let n=[...r,t];if("function"==typeof t.toJSON){let r=t.toJSON();if(r!==t)return"string"==typeof r?r:e(r,n)}else if(Array.isArray(t)){var o,l,a=t,s=n;if(0===a.length)return"[]";if(s.length>2)return"[Array]";let r=Math.min(10,a.length),i=a.length-r,d=[];for(let t=0;t<r;++t)d.push(e(a[t],s));return 1===i?d.push("... 1 more item"):i>1&&d.push(`... ${i} more items`),"["+d.join(", ")+"]"}return o=t,l=n,0===(i=Object.entries(o)).length?"{}":l.length>2?"["+function(e){let t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if("Object"===t&&"function"==typeof e.constructor){let t=e.constructor.name;if("string"==typeof t&&""!==t)return t}return t}(o)+"]":"{ "+i.map(t=>{let[r,i]=t;return r+": "+e(i,l)}).join(", ")+" }"}(t,r);default:return String(t)}}(e,[])}},391733,(e,t,r)=>{"use strict";var i,n;
2Object.defineProperty(r,"__esModule",{value:!0}),r.Token=r.QueryDocumentKeys=r.OperationTypeNode=r.Location=void 0,r.isNode=function(e){let t=null==e?void 0:e.kind;return"string"==typeof t&&s.has(t)};class o{constructor(e,t,r){this.start=e.start,this.end=t.end,this.startToken=e,this.endToken=t,this.source=r}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}}r.Location=o;class l{constructor(e,t,r,i,n,o){this.kind=e,this.start=t,this.end=r,this.line=i,this.column=n,this.value=o,this.prev=null,this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}}r.Token=l;let a={Name:[],Document:["definitions"],OperationDefinition:["description","name","variableDefinitions","directives","selectionSet"],VariableDefinition:["description","variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["description","name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"],TypeCoordinate:["name"],MemberCoordinate:["name","memberName"],ArgumentCoordinate:["name","fieldName","argumentName"],DirectiveCoordinate:["name"],DirectiveArgumentCoordinate:["name","argumentName"]};r.QueryDocumentKeys=a;let s=new Set(Object.keys(a));r.OperationTypeNode=i,(n=i||(r.OperationTypeNode=i={})).QUERY="query",n.MUTATION="mutation",n.SUBSCRIPTION="subscription"},508444,(e,t,r)=>{"use strict";var i,n;Object.defineProperty(r,"__esModule",{value:!0}),r.Kind=void 0,r.Kind=i,(n=i||(r.Kind=i={})).NAME="Name",n.DOCUMENT="Document",n.OPERATION_DEFINITION="OperationDefinition",n.VARIABLE_DEFINITION="VariableDefinition",n.SELECTION_SET="SelectionSet",n.FIELD="Field",n.ARGUMENT="Argument",n.FRAGMENT_SPREAD="FragmentSpread",n.INLINE_FRAGMENT="InlineFragment",n.FRAGMENT_DEFINITION="FragmentDefinition",n.VARIABLE="Variable",n.INT="IntValue",n.FLOAT="FloatValue",n.STRING="StringValue",n.BOOLEAN="BooleanValue",n.NULL="NullValue",n.ENUM="EnumValue",n.LIST="ListValue",n.OBJECT="ObjectValue",n.OBJECT_FIELD="ObjectField",n.DIRECTIVE="Directive",n.NAMED_TYPE="NamedType",n.LIST_TYPE="ListType",n.NON_NULL_TYPE="NonNullType",n.SCHEMA_DEFINITION="SchemaDefinition",n.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",n.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",n.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",n.FIELD_DEFINITION="FieldDefinition",n.INPUT_VALUE_DEFINITION="InputValueDefinition",n.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",n.UNION_TYPE_DEFINITION="UnionTypeDefinition",n.ENUM_TYPE_DEFINITION="EnumTypeDefinition",n.ENUM_VALUE_DEFINITION="EnumValueDefinition",n.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",n.DIRECTIVE_DEFINITION="DirectiveDefinition",n.SCHEMA_EXTENSION="SchemaExtension",n.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",n.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",n.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",n.UNION_TYPE_EXTENSION="UnionTypeExtension",n.ENUM_TYPE_EXTENSION="EnumTypeExtension",n.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension",n.TYPE_COORDINATE="TypeCoordinate",n.MEMBER_COORDINATE="MemberCoordinate",n.ARGUMENT_COORDINATE="ArgumentCoordinate",n.DIRECTIVE_COORDINATE="DirectiveCoordinate",n.DIRECTIVE_ARGUMENT_COORDINATE="DirectiveArgumentCoordinate"},194011,(e,t,r)=>{"use strict";
2Object.defineProperty(r,"__esModule",{value:!0}),r.BREAK=void 0,r.getEnterLeaveForKind=s,r.getVisitFn=function(e,t,r){let{enter:i,leave:n}=s(e,t);return r?n:i},r.visit=function(e,t){let r,d,c,u=arguments.length>2&&void 0!==arguments[2]?arguments[2]:o.QueryDocumentKeys,p=new Map;for(let e of Object.values(l.Kind))p.set(e,s(t,e));let f=Array.isArray(e),h=[e],m=-1,g=[],x=e,y=[],b=[];do{var v,w,j;let e,l=++m===h.length,s=l&&0!==g.length;if(l){if(d=0===b.length?void 0:y[y.length-1],x=c,c=b.pop(),s)if(f){x=x.slice();let e=0;for(let[t,r]of g){let i=t-e;null===r?(x.splice(i,1),e++):x[i]=r}}else for(let[e,t]of(x={...x},g))x[e]=t;m=r.index,h=r.keys,g=r.edits,f=r.inArray,r=r.prev}else if(c){if(null==(x=c[d=f?m:h[m]]))continue;y.push(d)}if(!Array.isArray(x)){(0,o.isNode)(x)||(0,i.devAssert)(!1,`Invalid AST Node: ${(0,n.inspect)(x)}.`);let r=l?null==(v=p.get(x.kind))?void 0:v.leave:null==(w=p.get(x.kind))?void 0:w.enter;if((e=null==r?void 0:r.call(t,x,d,c,y,b))===a)break;if(!1===e){if(!l){y.pop();continue}}else if(void 0!==e&&(g.push([d,e]),!l))if((0,o.isNode)(e))x=e;else{y.pop();continue}}void 0===e&&s&&g.push([d,x]),l?y.pop():(r={inArray:f,index:m,keys:h,edits:g,prev:r},h=(f=Array.isArray(x))?x:null!=(j=u[x.kind])?j:[],m=-1,g=[],c&&b.push(c),c=x)}while(void 0!==r)return 0!==g.length?g[g.length-1][1]:e},r.visitInParallel=function(e){let t=Array(e.length).fill(null),r=Object.create(null);for(let i of Object.values(l.Kind)){let n=!1,o=Array(e.length).fill(void 0),l=Array(e.length).fill(void 0);for(let t=0;t<e.length;++t){let{enter:r,leave:a}=s(e[t],i);n||(n=null!=r||null!=a),o[t]=r,l[t]=a}if(!n)continue;let d={enter(){for(var r,i=arguments.length,n=Array(i),l=0;l<i;l++)n[l]=arguments[l];let s=n[0];for(let i=0;i<e.length;i++)if(null===t[i]){let l=null==(r=o[i])?void 0:r.apply(e[i],n);if(!1===l)t[i]=s;else if(l===a)t[i]=a;else if(void 0!==l)return l}},leave(){for(var r,i=arguments.length,n=Array(i),o=0;o<i;o++)n[o]=arguments[o];let s=n[0];for(let i=0;i<e.length;i++)if(null===t[i]){let o=null==(r=l[i])?void 0:r.apply(e[i],n);if(o===a)t[i]=a;else if(void 0!==o&&!1!==o)return o}else t[i]===s&&(t[i]=null)}};r[i]=d}return r};var i=e.r(497888),n=e.r(692757),o=e.r(391733),l=e.r(508444);let a=Object.freeze({});function s(e,t){let r=e[t];return"object"==typeof r?r:"function"==typeof r?{enter:r,leave:void 0}:{enter:e.enter,leave:e.leave}}r.BREAK=a},114572,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.print=function(e){return(0,o.visit)(e,l)};var i=e.r(756094),n=e.r(803043),o=e.r(194011);let l={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>a(e.definitions,"\n\n")},OperationDefinition:{leave(e){let t=u(e.variableDefinitions)?d("(\n",a(e.variableDefinitions,"\n"),"\n)"):d("(",a(e.variableDefinitions,", "),")"),r=d("",e.description,"\n")+a([e.operation,a([e.name,t]),a(e.directives," ")]," ");return("query"===r?"":r+" ")+e.selectionSet}},VariableDefinition:{leave:e=>{let{variable:t,type:r,defaultValue:i,directives:n,description:o}=e;return d("",o,"\n")+t+": "+r+d(" = ",i)+d(" ",a(n," "))}},SelectionSet:{leave:e=>{let{selections:t}=e;return s(t)}},Field:{leave(e){let{alias:t,name:r,arguments:i,directives:n,selectionSet:o}=e,l=d("",t,": ")+r,s=l+d("(",a(i,", "),")");return s.length>80&&(s=l+d("(\n",c(a(i,"\n")),"\n)")),a([s,a(n," "),o]," ")}},Argument:{leave:e=>{let{name:t,value:r}=e;return t+": "+r}},FragmentSpread:{leave:e=>{let{name:t,directives:r}=e;return"..."+t+d(" ",a(r," "))}},InlineFragment:{leave:e=>{let{typeCondition:t,directives:r,selectionSet:i}=e;return a(["...",d("on ",t),a(r," "),i]," ")}},FragmentDefinition:{leave:e=>{let{name:t,typeCondition:r,variableDefinitions:i,directives:n,selectionSet:o,description:l}=e;return d("",l,"\n")+`fragment ${t}${d("(",a(i,", "),")")} `+`on ${r} ${d("",a(n," ")," ")}`+o}},IntValue:{leave:e=>{let{value:t}=e;return t}},FloatValue:{leave:e=>{let{value:t}=e;return t}},StringValue:{leave:e=>{let{value:t,block:r}=e;return r?(0,i.printBlockString)(t):(0,n.printString)(t)}},BooleanValue:{leave:e=>{let{value:t}=e;return t?"true":"false"}},NullValue:{leave:()=>"null"},EnumValue:{leave:e=>{let{value:t}=e;return t}}
2,ListValue:{leave:e=>{let{values:t}=e;return"["+a(t,", ")+"]"}},ObjectValue:{leave:e=>{let{fields:t}=e;return"{"+a(t,", ")+"}"}},ObjectField:{leave:e=>{let{name:t,value:r}=e;return t+": "+r}},Directive:{leave:e=>{let{name:t,arguments:r}=e;return"@"+t+d("(",a(r,", "),")")}},NamedType:{leave:e=>{let{name:t}=e;return t}},ListType:{leave:e=>{let{type:t}=e;return"["+t+"]"}},NonNullType:{leave:e=>{let{type:t}=e;return t+"!"}},SchemaDefinition:{leave:e=>{let{description:t,directives:r,operationTypes:i}=e;return d("",t,"\n")+a(["schema",a(r," "),s(i)]," ")}},OperationTypeDefinition:{leave:e=>{let{operation:t,type:r}=e;return t+": "+r}},ScalarTypeDefinition:{leave:e=>{let{description:t,name:r,directives:i}=e;return d("",t,"\n")+a(["scalar",r,a(i," ")]," ")}},ObjectTypeDefinition:{leave:e=>{let{description:t,name:r,interfaces:i,directives:n,fields:o}=e;return d("",t,"\n")+a(["type",r,d("implements ",a(i," & ")),a(n," "),s(o)]," ")}},FieldDefinition:{leave:e=>{let{description:t,name:r,arguments:i,type:n,directives:o}=e;return d("",t,"\n")+r+(u(i)?d("(\n",c(a(i,"\n")),"\n)"):d("(",a(i,", "),")"))+": "+n+d(" ",a(o," "))}},InputValueDefinition:{leave:e=>{let{description:t,name:r,type:i,defaultValue:n,directives:o}=e;return d("",t,"\n")+a([r+": "+i,d("= ",n),a(o," ")]," ")}},InterfaceTypeDefinition:{leave:e=>{let{description:t,name:r,interfaces:i,directives:n,fields:o}=e;return d("",t,"\n")+a(["interface",r,d("implements ",a(i," & ")),a(n," "),s(o)]," ")}},UnionTypeDefinition:{leave:e=>{let{description:t,name:r,directives:i,types:n}=e;return d("",t,"\n")+a(["union",r,a(i," "),d("= ",a(n," | "))]," ")}},EnumTypeDefinition:{leave:e=>{let{description:t,name:r,directives:i,values:n}=e;return d("",t,"\n")+a(["enum",r,a(i," "),s(n)]," ")}},EnumValueDefinition:{leave:e=>{let{description:t,name:r,directives:i}=e;return d("",t,"\n")+a([r,a(i," ")]," ")}},InputObjectTypeDefinition:{leave:e=>{let{description:t,name:r,directives:i,fields:n}=e;return d("",t,"\n")+a(["input",r,a(i," "),s(n)]," ")}},DirectiveDefinition:{leave:e=>{let{description:t,name:r,arguments:i,repeatable:n,locations:o}=e;return d("",t,"\n")+"directive @"+r+(u(i)?d("(\n",c(a(i,"\n")),"\n)"):d("(",a(i,", "),")"))+(n?" repeatable":"")+" on "+a(o," | ")}},SchemaExtension:{leave:e=>{let{directives:t,operationTypes:r}=e;return a(["extend schema",a(t," "),s(r)]," ")}},ScalarTypeExtension:{leave:e=>{let{name:t,directives:r}=e;return a(["extend scalar",t,a(r," ")]," ")}},ObjectTypeExtension:{leave:e=>{let{name:t,interfaces:r,directives:i,fields:n}=e;return a(["extend type",t,d("implements ",a(r," & ")),a(i," "),s(n)]," ")}},InterfaceTypeExtension:{leave:e=>{let{name:t,interfaces:r,directives:i,fields:n}=e;return a(["extend interface",t,d("implements ",a(r," & ")),a(i," "),s(n)]," ")}},UnionTypeExtension:{leave:e=>{let{name:t,directives:r,types:i}=e;return a(["extend union",t,a(r," "),d("= ",a(i," | "))]," ")}},EnumTypeExtension:{leave:e=>{let{name:t,directives:r,values:i}=e;return a(["extend enum",t,a(r," "),s(i)]," ")}},InputObjectTypeExtension:{leave:e=>{let{name:t,directives:r,fields:i}=e;return a(["extend input",t,a(r," "),s(i)]," ")}},TypeCoordinate:{leave:e=>{let{name:t}=e;return t}},MemberCoordinate:{leave:e=>{let{name:t,memberName:r}=e;return a([t,d(".",r)])}},ArgumentCoordinate:{leave:e=>{let{name:t,fieldName:r,argumentName:i}=e;return a([t,d(".",r),d("(",i,":)")])}},DirectiveCoordinate:{leave:e=>{let{name:t}=e;return a(["@",t])}},DirectiveArgumentCoordinate:{leave:e=>{let{name:t,argumentName:r}=e;return a(["@",t,d("(",r,":)")])}}};function a(e){var t;let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return null!=(t=null==e?void 0:e.filter(e=>e).join(r))?t:""}function s(e){return d("{\n",c(a(e,"\n")),"\n}")}function d(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return null!=t&&""!==t?e+t+r:""}function c(e){return d(" ",e.replace(/\n/g,"\n "))}function u(e){var t;return null!=(t=null==e?void 0:e.some(e=>e.includes("\n")))&&t}},164658,(e,t,r)=>{"use strict";t.exports=function(e){var t=e.uri,r=e.name,i=e.type;this.uri=t,this.name=r,this.type=i}},231520,(e,t,r)=>{"use strict";var i=e.r(164658);t.exports=function(e){return"u">typeof File&&e instanceof File||"u">typeof Blob&&e instanceof Blob||e instanceof i}},521907,(e,t,r)=>{"use strict";var i=e.r(231520);t.exports=function e(t,r,n){void 0===r&&(r=""),void 0===n&&(n=i);var o,l=new Map;function a(e,t){var r=l.get(t);r?r.push.apply(r,e):l.set(t,e)}if(n(t))o=null,a([r],t);else{var s=r?r+".":"";if("u">typeof FileList&&t instanceof FileList)o=Array.prototype.map.call(t,function(e,t){return a([""+s+t],e),null});else if(Array.isArray(t))o=t.map(function(t,r){var i=e(t,""+s+r,n);
2return i.files.forEach(a),i.clone});else if(t&&t.constructor===Object)for(var d in o={},t){var c=e(t[d],""+s+d,n);c.files.forEach(a),o[d]=c.clone}else o=t}return{clone:o,files:l}}},459872,(e,t,r)=>{"use strict";r.ReactNativeFile=e.r(164658),r.extractFiles=e.r(521907),r.isExtractableFile=e.r(231520)},318812,(e,t,r)=>{"use strict";t.exports="object"==typeof self?self.FormData:window.FormData},858818,(e,t,r)=>{"use strict";var i=e.e&&e.e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0});var n=e.r(459872),o=i(e.r(318812)),l=function(e){return n.isExtractableFile(e)||null!==e&&"object"==typeof e&&"function"==typeof e.pipe};r.default=function(e,t,r){var i=n.extractFiles({query:e,variables:t,operationName:r},"",l),a=i.clone,s=i.files;if(0===s.size){if(!Array.isArray(e))return JSON.stringify(a);if(void 0!==t&&!Array.isArray(t))throw Error("Cannot create request body with given variable type, array expected");return JSON.stringify(e.reduce(function(e,r,i){return e.push({query:r,variables:t?t[i]:void 0}),e},[]))}var d=new("u"<typeof FormData?o.default:FormData);d.append("operations",JSON.stringify(a));var c={},u=0;return s.forEach(function(e){c[++u]=e}),d.append("map",JSON.stringify(c)),u=0,s.forEach(function(e,t){d.append(""+ ++u,t)}),d}},141585,(e,t,r)=>{"use strict";var i,n=e.e&&e.e.__extends||(i=function(e,t){return(i=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0}),r.ClientError=void 0,r.ClientError=function(e){function t(r,i){var n=this,o=t.extractMessage(r)+": "+JSON.stringify({response:r,request:i});return Object.setPrototypeOf(n=e.call(this,o)||this,t.prototype),n.response=r,n.request=i,"function"==typeof Error.captureStackTrace&&Error.captureStackTrace(n,t),n}return n(t,e),t.extractMessage=function(e){try{return e.errors[0].message}catch(t){return"GraphQL Error (Code: "+e.status+")"}},t}(Error)},400749,(e,t,r)=>{"use strict";var i=e.e&&e.e.__assign||function(){return(i=Object.assign||function(e){for(var t,r=1,i=arguments.length;r<i;r++)for(var n in t=arguments[r])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}).apply(this,arguments)},n=e.e&&e.e.__createBinding||(Object.create?function(e,t,r,i){void 0===i&&(i=r),Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,i){void 0===i&&(i=r),e[i]=t[r]}),o=e.e&&e.e.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),l=e.e&&e.e.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return o(t,e),t},a=e.e&&e.e.__awaiter||function(e,t,r,i){return new(r||(r=Promise))(function(n,o){function l(e){try{s(i.next(e))}catch(e){o(e)}}function a(e){try{s(i.throw(e))}catch(e){o(e)}}function s(e){var t;e.done?n(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(l,a)}s((i=i.apply(e,t||[])).next())})},s=e.e&&e.e.__generator||function(e,t){var r,i,n,o,l={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){var s=[o,a];if(r)throw TypeError("Generator is already executing.");for(;l;)try{if(r=1,i&&(n=2&s[0]?i.return:s[0]?i.throw||((n=i.return)&&n.call(i),0):i.next)&&!(n=n.call(i,s[1])).done)return n;switch(i=0,n&&(s=[2&s[0],n.value]),s[0]){case 0:case 1:n=s;break;case 4:return l.label++,{value:s[1],done:!1};case 5:l.label++,i=s[1],s=[0];continue;case 7:s=l.ops.pop(),l.trys.pop();continue;default:if(!(n=(n=l.trys).length>0&&n[n.length-1])&&(6===s[0]||2===s[0])){l=0;continue}if(3===s[0]&&(!n||s[1]>n[0]&&s[1]<n[3])){l.label=s[1];break}if(6===s[0]&&l.label<n[1]){l.label=n[1],n=s;break}if(n&&l.label<n[2]){l.label=n[2],l.ops.push(s);break}n[2]&&l.ops.pop(),l.trys.pop();continue}s=t.call(e,l)}catch(e){s=[6,e],i=0}finally{r=n=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}}},d=e.e&&e.e.__rest||function(e,t){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&0>t.indexOf(i)&&(r[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var n=0,i=Object.getOwnPropertySymbols(e);n<i.length;n++)0>t.indexOf(i[n])&&Object.prototype.propertyIsEnumerable.call(e,i[n])&&(r[i[n]]=e[i[n]]);return r}
2,c=e.e&&e.e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.gql=r.batchRequests=r.request=r.rawRequest=r.GraphQLClient=r.ClientError=void 0;var u=l(e.r(130668)),p=e.r(114572),f=c(e.r(858818)),h=e.r(141585);Object.defineProperty(r,"ClientError",{enumerable:!0,get:function(){return h.ClientError}});var m=function(e){var t,r={};return e&&("u">typeof Headers&&e instanceof Headers||e instanceof u.Headers?(t={},e.forEach(function(e,r){t[r]=e}),r=t):Array.isArray(e)?e.forEach(function(e){var t=e[0],i=e[1];r[t]=i}):r=e),r},g=function(e){return e.replace(/([\s,]|#[^\n\r]+)+/g," ").trim()},x=function(e){var t=e.query,r=e.variables,i=e.operationName;if(!Array.isArray(t)){var n=["query="+encodeURIComponent(g(t))];return r&&n.push("variables="+encodeURIComponent(JSON.stringify(r))),i&&n.push("operationName="+encodeURIComponent(i)),n.join("&")}if(void 0!==r&&!Array.isArray(r))throw Error("Cannot create query with given variable type, array expected");return"query="+encodeURIComponent(JSON.stringify(t.reduce(function(e,t,i){return e.push({query:g(t),variables:r?JSON.stringify(r[i]):void 0}),e},[])))},y=function(e){var t=e.url,r=e.query,n=e.variables,o=e.operationName,l=e.headers,d=e.fetch,c=e.fetchOptions;return a(void 0,void 0,void 0,function(){var e;return s(this,function(a){switch(a.label){case 0:return e=f.default(r,n,o),[4,d(t,i({method:"POST",headers:i(i({},"string"==typeof e?{"Content-Type":"application/json"}:{}),l),body:e},c))];case 1:return[2,a.sent()]}})})},b=function(e){var t=e.url,r=e.query,n=e.variables,o=e.operationName,l=e.headers,d=e.fetch,c=e.fetchOptions;return a(void 0,void 0,void 0,function(){return s(this,function(e){switch(e.label){case 0:return[4,d(t+"?"+x({query:r,variables:n,operationName:o}),i({method:"GET",headers:l},c))];case 1:return[2,e.sent()]}})})},v=function(){function e(e,t){this.url=e,this.options=t||{}}return e.prototype.rawRequest=function(e,t,r){var n=this.options,o=n.headers,l=n.fetch,a=void 0===l?u.default:l,s=n.method,c=d(n,["headers","fetch","method"]);return w({url:this.url,query:e,variables:t,headers:i(i({},m(o)),m(r)),operationName:void 0,fetch:a,method:void 0===s?"POST":s,fetchOptions:c})},e.prototype.request=function(e,t,r){return a(this,void 0,void 0,function(){var n,o,l,a,c,p,f,h,g,x,y;return s(this,function(s){switch(s.label){case 0:return o=(n=this.options).headers,a=void 0===(l=n.fetch)?u.default:l,p=void 0===(c=n.method)?"POST":c,f=d(n,["headers","fetch","method"]),h=this.url,x=(g=C(e)).query,y=g.operationName,[4,w({url:h,query:x,variables:t,headers:i(i({},m(o)),m(r)),operationName:y,fetch:a,method:p,fetchOptions:f})];case 1:return[2,s.sent().data]}})})},e.prototype.batchRequests=function(e,t){return a(this,void 0,void 0,function(){var r,n,o,l,a,c,p,f;return s(this,function(s){switch(s.label){case 0:return n=(r=this.options).headers,l=void 0===(o=r.fetch)?u.default:o,c=void 0===(a=r.method)?"POST":a,p=d(r,["headers","fetch","method"]),f=this.url,[4,w({url:f,query:e.map(function(e){return C(e.document).query}),variables:e.map(function(e){return e.variables}),headers:i(i({},m(n)),m(t)),operationName:void 0,fetch:l,method:c,fetchOptions:p})];case 1:return[2,s.sent().data]}})})},e.prototype.setHeaders=function(e){return this.options.headers=e,this},e.prototype.setHeader=function(e,t){var r,i=this.options.headers;return i?i[e]=t:this.options.headers=((r={})[e]=t,r),this},e.prototype.setEndpoint=function(e){return this.url=e,this},e}();function w(e){var t=e.url,r=e.query,n=e.variables,o=e.headers,l=e.operationName,d=e.fetch,c=e.method,u=void 0===c?"POST":c,p=e.fetchOptions;return a(this,void 0,void 0,function(){var e,a,c,f,m,g,x,v;return s(this,function(s){switch(s.label){case 0:return e="POST"===u.toUpperCase()?y:b,a=Array.isArray(r),[4,e({url:t,query:r,variables:n,operationName:l,headers:o,fetch:d,fetchOptions:p})];case 1:var w,j;return[4,(j=(w=c=s.sent()).headers.get("Content-Type"))&&j.startsWith("application/json")?w.json():w.text()];case 2:if(f=s.sent(),m=a&&Array.isArray(f)?!f.some(function(e){return!e.data}):!!f.data,c.ok&&!f.errors&&m)return g=c.headers,x=c.status,[2,i(i({},a?{data:f}:f),{headers:g,status:x})];throw v="string"==typeof f?{error:f}:f,new h.ClientError(i(i({},v),{status:c.status,headers:c.headers}),{query:r,variables:n})}})})}function j(e,t,r,i){return a(this,void 0,void 0,function(){return s(this,function(n){return[2,new v(e).request(t,r,i)]})})}function C(e){if("string"==typeof e)return{query:e};var t,r=void 0,i=e.definitions.filter(function(e){return"OperationDefinition"===e.kind});return 1===i.length&&(r=null==(t=i[0].name)?void 0:t.value),{query:p.print(e),operationName:r}}r.GraphQLClient=v,r.rawRequest=function(e,t,r,i){return a(this,void 0,void 0,function(){return s(this,function(n){return[2,new v(e).rawRequest(t,r,i)]})})},r.request=j,r.batchRequests=function(e,t,r){return a(this,void 0,void 0,function(){return s(this,function(i){return[2,new v(e).batchRequests(t,r)]})})},r.default=j,r.gql=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return e.reduce(function(e,r,i){return""+e+r+(i in t?t[i]:"")},"")}},869253,396869,271125,557587,971137,645022,667294,802347,377831,735610,307222,914886,440597,983004,639768,31362,818233,19728,627164,535949,e=>{"use strict";var t,r=e.i(304886),i=e.i(160183),n=e.i(202914),o=e.i(906626),l=e.i(732377),a=e.i(189939),s=e.i(429694),d=e.i(841115),c=e.i(949820),u=e.i(858574),p=e.i(659254),f=e.i(856717),h=e.i(920395);let m=function(e){let{id:t,className:n,text:o,editorProps:{editorStyle:l,...m}={},editorContext:g={},enableFadeIn:x=!1,style:y,isEdit:b,scrollThreshold:v=.5,src:w,embeddedStyle:j,mobileStyle:C,tabletStyle:k,rwdMode:S}=e,{domRef:T,fadeInStyle:$}=(0,s.default)(),_=(0,i.useId)(),E=`back-to-top-${_.replace(/:/g,"")}`,I=S||"all",N=I?.toUpperCase()===g?.previewMode,[A,P]=(0,i.useState)(!1),M=(0,i.useCallback)(()=>
2{if("u"<typeof document)return;let e=window.scrollY||document.documentElement.scrollTop,t=document.documentElement.scrollHeight-document.documentElement.clientHeight;t<=0?P(!1):P(e/t>=v)},[v]);(0,i.useEffect)(()=>{if(b)return;let e=null,t=!1,r=()=>{t||(e=window.requestAnimationFrame(()=>{M(),t=!1}),t=!0)};return window.addEventListener("scroll",r,{passive:!0}),M(),()=>{window.removeEventListener("scroll",r),null!==e&&window.cancelAnimationFrame(e)}},[M,b]);let L=(0,i.useMemo)(()=>{let e=[];if(!b){let t=(0,f.generateRwdModeCss)(E,S);t&&e.push(t)}return j&&e.push(`.${E} { ${(0,p.sanitizeEmbeddedCss)(j)} }`),e.join("\n")},[j,S,E,b]),B=(0,i.useMemo)(()=>w?{backgroundImage:`url(${w})`,backgroundRepeat:"no-repeat"}:{},[w]),O=b||A,D=(0,i.useMemo)(()=>{let e=(0,u.default)(y),t="opacity 0.3s ease-in-out, visibility 0.3s ease-in-out",r=e?.transition,i=r?`${t}, ${r}`:t;return{...c.default,...e,...x&&$,...l,...B,...b&&!("all"===I||N)?{display:"none"}:{},position:"fixed",zIndex:9999,cursor:"pointer",opacity:+!!O,visibility:O?"visible":"hidden",transition:i}},[B,l,x,$,b,I,O,N,y]),R=(0,d.default)({baseStyle:D,mobileStyle:C,tabletStyle:k}),z=()=>{b||window.scrollTo({top:0,behavior:"smooth"})},F=[h.default.backToTop,E,n].filter(Boolean).join(" ");return(0,r.jsxs)(r.Fragment,{children:[L&&(0,r.jsx)("style",{dangerouslySetInnerHTML:{__html:L}}),(0,r.jsx)("div",{id:t,className:F,ref:T,style:R,onClick:z,onKeyDown:e=>{("Enter"===e.key||" "===e.key)&&(e.preventDefault(),z())},role:"button",tabIndex:O?0:-1,"aria-label":"Back to top","aria-hidden":!O,...m,children:(0,r.jsx)(a.RichText,{content:o||"",isEdit:b})})]})};var g=e.i(499791);function x(e,t){return"submit"!==e&&!t}e.s(["canButtonLink",0,x],396869);var y=e.i(82891),b=e.i(672775);let v=["display","position"];function w(e){if(!e||"object"!=typeof e)return{};let t={...e};void 0!==t.border_width&&void 0===t.borderWidth&&(t.borderWidth=t.border_width),void 0!==t.border_color&&void 0===t.borderColor&&(t.borderColor=t.border_color),void 0!==t.border_style&&void 0===t.borderStyle&&(t.borderStyle=t.border_style);let r=null!=t.borderWidth||null!=t.borderColor;return r&&"string"==typeof t.border&&"none"===t.border.trim().toLowerCase()&&delete t.border,r&&(null==t.borderStyle||"none"===t.borderStyle)&&(t.borderStyle="solid"),t}let j=function(e){let{id:t,className:n,text:o,style:l,children:c,onClick:u,disabled:f,editorProps:{editorStyle:h,...m}={},editorContext:j={},mobileStyle:C,tabletStyle:k,enableFadeIn:S,embeddedStyle:T,isSubmitted:$,isSubmitting:_,isInsideForm:E,submitSuccessText:I,action:N,linkProps:A}=e,{domRef:P,fadeInStyle:M}=(0,s.default)(),{isInsideLink:L}=(0,g.useLinkContext)(),B=(0,i.useId)(),O=`button-${B.replace(/:/g,"")}`,D=j?.isEdit,R=A?.href,z=(0,y.getSafeHref)(R,D),F=(0,y.getSafeHref)(R,!1),W=x(N,E)&&!!F&&"#"!==F&&!L&&!f&&!_&&!$,H=W&&!D,q=(0,i.useMemo)(()=>{let e=w(l),t={...e,...S&&M,...h};return v.forEach(r=>{e?.[r]||delete t[r]}),t},[h,S,M,l]),U=(0,d.default)({baseStyle:q,mobileStyle:w(C),tabletStyle:w(k)}),V=[b.default.button,O,n].filter(Boolean).join(" "),J=(0,r.jsx)(a.RichText,{content:$?I||"":o||"",isEdit:j?.isEdit}),G=W?(0,r.jsxs)(g.LinkProvider,{children:[J,c]}):(0,r.jsxs)(r.Fragment,{children:[J,c]});return(0,r.jsxs)(r.Fragment,{children:[T&&(0,r.jsx)("style",{dangerouslySetInnerHTML:{__html:`.${O} { ${(0,p.sanitizeEmbeddedCss)(T)} }`}}),H?(0,r.jsx)("a",{id:t,className:V,ref:P,style:U,href:z,target:A?.openNewTab?"_blank":"_self",rel:"noreferrer",...m,children:G}):(0,r.jsx)("button",{id:t,className:V,ref:P,style:U,onClick:u,disabled:f||$||_,type:"submit",...m,children:G})]})};e.s(["default",0,j],271125);let C=(0,i.createContext)({isSubmitting:!1,isSubmitted:!1,isInsideForm:!1}),k=()=>(0,i.useContext)(C),S=function(e){let{children:t,isSubmitting:i,isSubmitted:n}=e;return(0,r.jsx)(C.Provider,{value:{isSubmitting:i,isSubmitted:n,isInsideForm:!0},children:t})};function T(e,t){try{return e.split("{{").filter(e=>e.includes("}}")).map(e=>e.split("}}")[0]).reduce((e,r)=>{let i=r.split(".").reduce((e,t)=>"object"==typeof e&&null!==e&&t in e?e[t]:"",t);return{...e,[r]:i}},{})}catch(e){return console.warn("Failed to extract object values from template:",e),{}}}function $(e){let{values:t,dataFeed:r}=e;return Object.entries(t).reduce((e,t)=>
2{let[i,n]=t;return{...e,[i]:_({strTemplate:"string"==typeof n?n:String(n),data:r})}},{})}function _(e){let{strTemplate:t,data:r}=e;if(!t)return t;let i=T(t,r);if(Object.values(i).some(e=>null==e))return"";let n=Object.entries(i).reduce((e,t)=>{let[r,i]=t;return"object"==typeof i||"string"==typeof e?e.replace(`{{${r}}}`,String(i)):e},t);return r?n:n||t}e.s(["getObjectValues",0,T,"getReplacedString",0,_,"replaceObjectValues",0,$],557587);var E=e.i(873887),I=e.i(85684),N=e.i(596479);let A="page-renderer-edit-mode-click-overlay-style",P=` 3 /* Disable pointer events on interactive elements in edit mode */ 4 /* This prevents buttons, links, carousel controls, progress bars, and rating stars from intercepting clicks */ 5 /* Images and text are excluded to prevent flickering */ 6 [data-edit-mode-overlay] button, 7 [data-edit-mode-overlay] a, 8 [data-edit-mode-overlay] .carousel-dots, 9 [data-edit-mode-overlay] .control-arrow, 10 [data-edit-mode-overlay] .slider-wrapper, 11 [data-edit-mode-overlay] .carousel-slider, 12 [data-edit-mode-overlay] ul, 13 [data-edit-mode-overlay] ol, 14 [data-edit-mode-overlay] li, 15 [data-edit-mode-overlay] .progress, 16 [data-edit-mode-overlay] .progress-bar, 17 [data-edit-mode-overlay] [role="progressbar"], 18 [data-edit-mode-overlay] svg, 19 [data-edit-mode-overlay] span { 20 pointer-events: none !important; 21 cursor: default !important; 22 } 23 24 /* Ensure images maintain their rendering behavior */ 25 [data-edit-mode-overlay] img { 26 pointer-events: none !important; 27 user-select: none; 28 -webkit-user-drag: none; 29 } 30 31 /* Re-enable pointer events for carousel navigation dots */ 32 [data-edit-mode-overlay] .carousel-dots, 33 [data-edit-mode-overlay] .control-dots, 34 [data-edit-mode-overlay] .control-dots .dot { 35 pointer-events: auto !important; 36 cursor: pointer !important; 37 } 38 39 /* Re-enable pointer events for mixed content carousel slides and nested content */ 40 [data-edit-mode-overlay] .carousel-mixed-slide, 41 [data-edit-mode-overlay] .carousel-mixed-slide * { 42 pointer-events: auto !important; 43 } 44 45 /* Keep interactive controls disabled within mixed slides content */ 46 [data-edit-mode-overlay] .carousel-mixed-slide button, 47 [data-edit-mode-overlay] .carousel-mixed-slide a { 48 pointer-events: none !important; 49 } 50 51 /* 52 * InlineTextEditor (TipTap/ProseMirror) renders marks and text via nested <span> nodes. 53 * When a text element is nested inside another component that uses EditModeClickOverlay, 54 * the global span pointer-events rule prevents selecting text and interacting with 55 * inline formatting UI (color/link). 56 * 57 * Restore pointer events for the inline editor subtree only. 58 */ 59 [data-edit-mode-overlay] [data-inline-text-editor="true"], 60 [data-edit-mode-overlay] [data-inline-text-editor="true"] * { 61 pointer-events: auto !important; 62 cursor: inherit !important; 63 } 64 65 /* 66 * Nested editable elements (e.g. a Text element inside a component that uses EditModeClickOverlay) 67 * must remain clickable/selectable. They are identified by the "data-element-type" attribute 68 * which is added by the builder's editorProps. 69 * 70 * Without this, the global span rule can cause clicks to "fall through" to a parent element, 71 * making the right panel unable to edit the intended nested element. 72 */ 73 [data-edit-mode-overlay] [data-element-type], 74 [data-edit-mode-overlay] [data-element-type] * { 75 pointer-events: auto !important; 76 cursor: inherit !important; 77 } 78`,M=function(e){let{isEdit:t,children:n}=e;return((0,i.useEffect)(()=>{if(!t||"u"<typeof document||document.getElementById(A))return;let e=document.createElement("style");e.id=A,e.textContent=P,document.head.appendChild(e)},[t]),t)?(0,r.jsx)("div",{"data-edit-mode-overlay":"true",style:{position:"relative",width:"100%",maxWidth:"100%",overflow:"visible"},children:n}):(0,r.jsx)(r.Fragment,{children:n})};function L(e){let{src:t,alt:n,side:o,onClick:l,title:a,containerHovered:s}=e,[d,c]=(0,i.useState)(!1),u=s||d;return(0,r.jsx)("button",{type:"button",style:{position:"absolute",top:0,bottom:0,[o]:0,width:"80px",display:"flex",alignItems:"center",justifyContent:"left"
78===o?"flex-start":"flex-end",padding:"0 24px",background:u?"left"===o?"linear-gradient(to right, rgba(0,0,0,0.4), transparent)":"linear-gradient(to left, rgba(0,0,0,0.4), transparent)":"transparent",border:"none",cursor:"pointer",zIndex:2,transition:"background 0.2s"},"aria-label":a??n,title:a,onClick:l,onMouseEnter:()=>c(!0),onMouseLeave:()=>c(!1),children:(0,r.jsx)("img",{alt:"",src:t,style:{width:"32px",height:"32px",objectFit:"contain",opacity:+!!u,transition:"opacity 0.2s"}})})}let B={appearance:"none",border:"none",background:"transparent",padding:0,font:"inherit",color:"inherit"},O={zIndex:2,top:"50%",transform:"translateY(-50%)",width:32,height:32,cursor:"pointer",backgroundColor:"#1988FF",borderRadius:"100%",color:"#fff",display:"flex",alignItems:"center",justifyContent:"center"};function D(e){let{side:t,onClick:n,containerHovered:o}=e,[l,a]=(0,i.useState)(!1);return(0,r.jsx)("button",{type:"button","aria-label":"left"===t?"Previous":"Next",style:{...B,...O,[t]:24,position:"absolute",opacity:+!!(o||l),transition:"opacity 0.2s"},onClick:n,onMouseEnter:()=>a(!0),onMouseLeave:()=>a(!1),children:(0,r.jsx)("span",{style:{width:"8px",color:"#fff"},children:(0,r.jsx)("i",{className:`fa fa-chevron-${"left"===t?"left":"right"}`})})})}let R={zIndex:2,top:"50%",transform:"translateY(-50%)",width:40,height:40,cursor:"pointer",backgroundColor:"rgba(0, 0, 0, 0.4)",border:"1px solid rgba(255, 255, 255, 0.2)",borderRadius:"50%",color:"#fff",display:"flex",alignItems:"center",justifyContent:"center"};function z(e){let{side:t,onClick:n,containerHovered:o}=e,[l,a]=(0,i.useState)(!1);return(0,r.jsx)("button",{type:"button","aria-label":"left"===t?"Previous":"Next",style:{...B,...R,[t]:24,position:"absolute",opacity:+!!(o||l),transition:"opacity 0.2s"},onClick:n,onMouseEnter:()=>a(!0),onMouseLeave:()=>a(!1),children:(0,r.jsx)("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:(0,r.jsx)("path",{d:"left"===t?"M15 18l-6-6 6-6":"M9 18l6-6-6-6"})})})}let F=function(e){let{params:t,styleParams:n,isEdit:o,editorContext:l,editorProps:a={},block:s,blockTable:d,BlockComponent:c,path:u=[],t:p,subdomain:f="",actions:h={},dataProvider:m={},componentData:g={}}=e,x=E.Carousel,y={...JSON.parse(t||"{}")},{slides:b,interval:v,enableMobile:w,mobileSlides:j,mode:C,slidesToShow:k,scrollGroup:S,gap:T,showArrows:$,showDots:_,dotSize:A,dotColor:P,dotActiveColor:B,dotInactiveOpacity:O,...R}=y,F=!1!==$,W=!1!==_,H="mixed"===C||s?.nestedItems&&s.nestedItems.length>0||b&&b.length>0&&"mixed"===b[0].type?(b||[]).map((e,t)=>{let r=s?.nestedItems?.[t];return r?{...e,type:"mixed",slideBlock:r}:"mixed"===e.type?{...e,type:"mixed",slideBlock:null}:e}):b,{previewMode:q,selectedPath:U,onSelect:V}=l,[J,G]=(0,i.useState)("all"),[Y,Z]=(0,i.useState)(0),[K,X]=(0,i.useState)(!1);(0,i.useEffect)(()=>{n?.rwdMode&&G(n.rwdMode)},[n]),(0,i.useEffect)(()=>{if(!o||!U||!u)return;let e=u.map(String),t=U.map(String);if(e.every((e,r)=>t[r]===e)&&t.length>e.length){let r=t[e.length];if("nestedItems"===r||"imageSlide"===r){let r=parseInt(t[e.length+1],10);isNaN(r)||r===Y||Z(r)}}},[U,u,o,Y]);let Q=e=>{if(Z(e),o&&V&&u){let t=s?.nestedItems?.[e];t&&V({id:t.parent,path:[...u,"nestedItems",e.toString()]})}},ee="style1"===y.carouselBtnStyle?e=>(0,r.jsx)(D,{side:"left",onClick:e,containerHovered:K}):"darkCircle"===y.carouselBtnStyle?e=>(0,r.jsx)(z,{side:"left",onClick:e,containerHovered:K}):"custom"===y.carouselBtnStyle&&y.carouselBtnCustomPrevImage?()=>(0,r.jsx)(L,{src:y.carouselBtnCustomPrevImage,alt:"prev",side:"left",containerHovered:K}):void 0,et="style1"===y.carouselBtnStyle?e=>(0,r.jsx)(D,{side:"right",onClick:e,containerHovered:K}):"darkCircle"===y.carouselBtnStyle?e=>(0,r.jsx)(z,{side:"right",onClick:e,containerHovered:K}):"custom"===y.carouselBtnStyle&&y.carouselBtnCustomNextImage?()=>(0,r.jsx)(L,{src:y.carouselBtnCustomNextImage,alt:"next",side:"right",containerHovered:K}):void 0,er=e=>(e||[]).map((e,t)=>{if("mixed"===e.type){let{slideBlock:i,...n}=e;return i&&c?{...n,children:(0,r.jsx)(c,{block:i,blockTable:d||{},path:[...u,"nestedItems",t.toString()],isCopied:!1,actions:h,subdomain:f,t:p||(e=>e),dataProvider:m,componentData:g,editorContext:l,previewMode:l?.previewMode},i.parent)}:{...n,children:(0,r.jsx)(N.Div,{style:{display:"flex",alignItems:"center",justifyContent:"center",width:"100%",minHeight:"400px",padding:"40px 20px",backgroundColor:o?"#f7fafc":"transparent",border:o?"2px dashed #cbd5e0":"none",borderRadius:"8px",color:"#718096",textAlign:"center"},editorContext:l,children:o?(0,r.jsxs)("div",{children:[(0,r.jsx)("p",{style:{marginBottom:"8px",fontWeight:"bold"},children:p?p("No elements in this slide yet"):"No elements in this slide yet"}),(0,r.jsx)("p",{style:{fontSize:"14px"},children:p?p("Click the slide in canvas and drag elements from left panel"):"Click the slide in canvas and drag elements from left panel"})]}):null},`empty-slide-${t}`)}}return{...e,...I.utils.imageProxySets(e.image),loading:0===t?"eager":"lazy"}}),ei=er(H),en=er(j),eo=0===v?3:v,el=J?.toUpperCase()===q,ea=k,es=T;o&&("MOBILE"===q?(ea=R.slidesToShowMobile??1,es=R.gapMobile??T):"TABLET"===q&&(ea=R.slidesToShowTablet??k,es=R.gapTablet??T));let ed=n.style?.borderRadius&&"0px"!==n.style.borderRadius&&"0"!==n.style.borderRadius,ec={...a,onMouseEnter:e=>{X(!0),a.onMouseEnter?.(e)},onMouseLeave:e=>{X(!1),a.onMouseLeave?.(e)}};return(0,r.jsxs)(N.Div,{...n,style:{...o?{display:"all"===J||el?"block":"none"}:{},...n.style,width:"100%",maxWidth:"100%",padding:0,margin:0,boxSizing:"border-box",...ed?{overflow:"hidden"}:{},...o?{position:"relative"}:{}},className:"carousel-wrapper-root",editorProps:ec,editorContext:l,children:[(0,r.jsx)(M,{isEdit:o,children:(0,r.jsxs)(r.Fragment,{children:[w&&(j&&j.length>0?(0,r.jsx)(N.Div,{style:{display:"none",width:"100%",maxWidth:"100%",padding:0,margin:0,boxSizing:"border-box"},className:"carousel-inner-wrapper carousel-mobile-wrapper",mobileStyle:{display:"block"},omitDefaultStyle:!0,editorContext:l,children:(0,r.jsx)(x,{customPrevButton:F?ee:void 0,customNextButton:F?et:void 0,slides:en,carouselProps:{...R,showArrows:F,showIndicators:!o&&W,autoPlay:!o&&R.autoPlay,interval:1e3*eo,dotSize:A,dotColor:P,dotActiveColor:B,dotInactiveOpacity:O},containerWidth:"100%",isEdit:o,selectedItem:Y,onChange:Q,t:p,slidesToShow:ea,scrollGroup:S,gap:es})}):(0,r.jsx)(N.Div,{style:{width:"100%",height:"480px",display:"none"},mobileStyle:{display:"block"},omitDefaultStyle:!0,editorContext:l,children:(0,r.jsx)("p",{style:{margin:"auto"},children:" Click to add images"})})),b&&b.length>0?(0,r.jsx)(N.Div,{style:{display:"block",width:"100%",maxWidth:"100%",padding:0,margin:0,boxSizing:"border-box"},className:"carousel-inner-wrapper",mobileStyle:{display:w?"none":"block"},omitDefaultStyle:!0,editorContext:l,children:(0,r.jsx)(x,{customPrevButton:F?ee:void 0,customNextButton:F?et:void 0,slides:ei,carouselProps:{...R,showArrows:F,showIndicators:!o&&W,autoPlay:!o&&R.autoPlay,interval:1e3*eo,dotSize:A,dotColor:P,dotActiveColor:B,dotInactiveOpacity:O},containerWidth:"100%",isEdit:o,selectedItem:Y,onChange:Q,t:p,slidesToShow:ea,scrollGroup:S,gap:es})}):o?(0,r.jsx)("div",{style:{width:"100%",height:"480px",display:"flex"},children:(0,r.jsx)("p",{style:{margin:"auto"},children:" Click to add images"})}):null]})}),o&&W&&ei&&ei.length>1&&(0,r.jsx)("div",{style:{position:"absolute",bottom:0,left:0,right:0,display:"flex",justifyContent:"center",alignItems:"center",gap:"8px",padding:"8px 0",zIndex:2,pointerEvents:"auto"},children:ei.map((e,t)=>(0,r.jsx)("button",{type:"button","aria-label":`Go to slide ${t+1}`,"aria-current":t===Y?"true":void 0,onClick:e=>{e.stopPropagation(),Q(t)},style:{width:`${A??8}px`,height:`${A??8}px`,borderRadius:"50%",border:"none",padding:0,cursor:"pointer",backgroundColor:t===Y?B??P??"#fff":P??"#fff",opacity:t===Y?
781:O??.3,boxShadow:"1px 1px 2px rgba(0,0,0,0.9)"}},t))})]})},W={zh:{D:"天",H:"æ",M:"å",S:"ç§"},en:{D:"D",H:"H",M:"M",S:"S"}},H={zh:"å·²çµæ",en:"has ended"},q=function(e){let{showUnits:t,endedAt:n,gap:o,digitFontSize:l,unitFontSize:a,language:s,...d}=e,[c,u]=(0,i.useState)(0),p=(0,i.useRef)(void 0),f=(0,i.useMemo)(()=>Math.floor(c/60/60/24),[c]),h=(0,i.useMemo)(()=>Math.floor(c/60/60%24),[c]),m=(0,i.useMemo)(()=>Math.floor(c/60%60),[c]),g=(0,i.useMemo)(()=>Math.floor(c%60),[c]),x=(0,i.useCallback)(()=>{let e=new Date().getTime()/1e3;u(n-e>0?n-e:0)},[n]),y=(0,i.useCallback)(e=>{let t="D"===e?f:"H"===e?h:"M"===e?m:g;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("p",{style:{fontSize:l,color:"inherit"},children:t?.toString().padStart(2,"0")}),(0,r.jsx)("p",{style:{fontSize:a,color:"inherit"},children:W[s][e]})]})},[f,l,h,s,m,g,a]);return(0,i.useEffect)(()=>(p.current=setInterval(x,1e3),()=>{clearInterval(p.current)}),[x]),(0,r.jsx)(N.Div,{...d,children:c>0?(0,r.jsx)("div",{style:{display:"grid",gridTemplateColumns:"repeat(4, minmax(48px, 1fr))",gridGap:o},children:t.map(e=>(0,r.jsx)("div",{style:{width:"fit-content"},children:y(e)},e))}):H[s]})};var U=e.i(554861);let V=[];function J(){return(0,r.jsx)("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none","aria-hidden":"true",children:(0,r.jsx)("path",{d:"M11 13.5L6.5 9 11 4.5",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round"})})}function G(){return(0,r.jsx)("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none","aria-hidden":"true",children:(0,r.jsx)("path",{d:"M7 4.5L11.5 9 7 13.5",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round"})})}function Y(e){let{onClick:t,disabled:i,imageUrl:n,direction:o,dark:l}=e;return(0,r.jsx)("button",{type:"button",onClick:e=>{e.stopPropagation(),t()},disabled:i,"aria-label":"prev"===o?"Previous page":"Next page",style:{width:36,height:36,borderRadius:"50%",border:l?"1px solid rgba(255,255,255,0.2)":"1px solid #e2e8f0",background:l?"rgba(0,0,0,0.4)":"#fff",cursor:i?"not-allowed":"pointer",display:"flex",alignItems:"center",justifyContent:"center",color:l?"#fff":"#4a5568",opacity:i?.4:1,padding:0,flexShrink:0,transition:"opacity 0.15s"},children:n?(0,r.jsx)("img",{src:n,alt:"",style:{width:20,height:20,objectFit:"contain"}}):"prev"===o?(0,r.jsx)(J,{}):(0,r.jsx)(G,{})})}function Z(e){let{active:t,label:i,onClick:n,size:o,color:l,activeColor:a,inactiveOpacity:s}=e;return(0,r.jsx)("button",{type:"button","aria-label":i,"aria-current":t?"true":void 0,onClick:e=>{e.stopPropagation(),n()},style:{width:o,height:o,borderRadius:"50%",border:"none",padding:0,cursor:"pointer",backgroundColor:t?a:l,opacity:t?1:s,boxShadow:"1px 1px 2px rgba(0,0,0,0.4)"}})}let K=function(e){let{eId:t,graphqlQuery:n,graphqlEndpoint:o,arrayKey:l,params:a,src:s,styleParams:d,isEdit:c,editorContext:u,block:p,blockTable:f,BlockComponent:h,path:m,subdomain:g,t:x,actions:y={},dataProvider:b,getFilteredEditorProps:v,children:w,editorProps:j}=e,C=4;try{let e=JSON.parse(a||"{}");"number"==typeof e.itemsPerPage&&e.itemsPerPage>0&&(C=e.itemsPerPage)}catch{}let[k,S]=(0,i.useState)(0),[$,_]=(0,i.useState)(!1),E=(0,i.useRef)(null),I=(0,i.useRef)(!1),A=(0,i.useId)().replace(/[^a-zA-Z0-9_-]/g,""),P=(0,i.useRef)(null),{slideLeft:M,slideRight:L,dragHandlers:B}=(0,U.useHorizontalScroll)(P,{step:"card",enableDrag:!c});(0,i.useEffect)(()=>{let e=()=>_(window.innerWidth<1024);return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]);let O=u.previewMode,D=c&&("MOBILE"===O||"TABLET"===O)||$;(0,i.useEffect)(()=>{S(0)},[C]);let R=(0,i.useRef)(new Map),z=b[`${t}_${n}_${o}`],{style:F}=d;try{var W,H;if(!z){if(n&&o)return c?(0,r.jsx)(N.Div,{...d,style:{...F,p:{color:"#3182ce",border:"1px solid #bee3f8",fontSize:"1.5rem",margin:"0px",padding:"1rem",width:"100%"}},editorProps:v(j),editorContext:u,children:(0,r.jsx)("p",{children:"Data loading..."})}):(0,r.jsx)(N.Div,{...d,editorProps:v(j),editorContext:u,children:(0,r.jsx)("div",{style:{padding:"1rem",textAlign:"center",color:"#666"},children:"Loading..."})});return c?(0,r.jsx)(N.Div,{...d,style:{...F,p:{color:"#f54242",border:"1px solid #f59d9d",fontSize:"1.5rem",margin:"0px",padding:"1rem",width:"100%"}},editorProps:v(j),editorContext:u,children:(0,r.jsx)("p",{children:"Please finish the settings for data provider"})}):(0,r.jsx)(N.Div,{...d,editorProps:v(j),editorContext:u,children:w})}if(!l)return(0,r.jsx)(N.Div,{...d,editorProps:v(j),editorContext:u,children:w});let e=T(`{{${l}}}`,z)[l];if(!e||!Array.isArray(e))return c?(0,r.jsx)(N.Div,{...d,style:{...F,p:{color:"#f54242",border:"1px solid #f59d9d",fontSize:"1.5rem",margin:"0px",padding:"1rem",width:"100%"}},editorProps:v(j),editorContext:u,children:(0,r.jsx)("p",{children:"Please provide a valid array key"})}):null;let t={...JSON.parse(a||"{}")},{displayItemIds:i,sourceSubdomain:$,displayMode:_,itemsPerPage:O=C,arrowPosition:q="right",showPageIndicator:U=!1,showDots:J=!1,dotSize:G,dotColor:K,dotActiveColor:X,dotInactiveOpacity:Q,pageGridColumns:ee,mobileBehavior:et}=t,er=(W=t.prevArrowImage,H=t.nextArrowImage,"default"===t.arrowButtonStyle||"darkCircle"===t.arrowButtonStyle||"custom"===t.arrowButtonStyle?t.arrowButtonStyle:W||H?"custom"
78:"dark"===t.arrowStyle?"darkCircle":"default"),ei="darkCircle"===er,en="custom"===er?t.prevArrowImage:void 0,eo="custom"===er?t.nextArrowImage:void 0,el=G??8,ea=K??"#fff",es=X??ea,ed=Q??.3,ec=e=>x?`${x("general:page")} ${e+1}`:`Page ${e+1}`,eu="slider"===_,ep="scroll"===_,ef=D&&(eu&&("responsive"===et||"swipe"===et)||ep),eh="swipe"===et||ep,em=i&&0!==i.length?e.filter(e=>i.includes(e.id)):e.length>15?e.slice(0,15):e,eg=Math.floor(Number(O)),ex=isNaN(eg)?4:Math.max(1,eg),ey=Math.ceil(em.length/ex),eb=Math.min(k,Math.max(0,ey-1)),ev=eu&&!D&&em.length>ex,ew=eu&&!D?em.slice(eb*ex,(eb+1)*ex):em,ej=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return p.nestedItems?.[0]?e.map((e,i)=>{let n,o=t+i,l=`${p.nestedItems?.[0]?.parent}_${void 0!==e.id&&null!==e.id?`id_${e.id}`:void 0!==e.slug&&null!==e.slug?`slug_${e.slug}_${o}`:void 0!==e.name&&null!==e.name?`name_${e.name}_${o}`:void 0!==e.title&&null!==e.title?`title_${e.title}_${o}`:`idx_${o}`}`,a={...p.nestedItems?.[0]||{},parent:`${p.nestedItems?.[0]?.parent}_item_${o}`,nestedItems:p.nestedItems?.[0]?.nestedItems??V},s=f[p.nestedItems?.[0]?.parent],d=`${a.parent}:${s?.params??""}:${$??""}`,c=R.current.get(a.parent);if(c&&c.entryKey===d&&c.baseBlockTable===f)n=c.fullTable;else{let e=s?{...s,eId:a.parent,params:JSON.stringify({...JSON.parse(s.params||"{}"),sourceSubdomain:$})}:{eId:a.parent,type:"div",params:JSON.stringify({sourceSubdomain:$}),style:{},mobileStyle:{},tabletStyle:{}};n={...f,[a.parent]:e},R.current.set(a.parent,{entryKey:d,baseBlockTable:f,entry:e,fullTable:n})}return(0,r.jsx)(h,{blockTable:n,block:a,dataProvider:b,isCopied:!1,path:m.concat(["nestedItems","0"]),subdomain:g,t:x,actions:y,componentData:e,editorContext:u},l)}):w};if(ep&&!D){let e=`dp-hscroll-${A}`,i=F?.gap||"24px",n=!1!==t.arrowShowDesktop,o=!D&&n&&em.length>ex,l=J&&!D&&ey>1;return(0,r.jsxs)(N.Div,{...d,...t,src:s,style:{...F,position:"relative",gap:void 0},editorProps:v(j),editorContext:u,children:[(0,r.jsx)("style",{children:`.${e}{display:flex;flex-wrap:nowrap;overflow-x:auto;scroll-behavior:smooth;scrollbar-width:none;-ms-overflow-style:none}.${e}::-webkit-scrollbar{display:none}.${e}>*{flex:0 0 auto}.${e}-arrow{opacity:0.4;transition:opacity .25s ease-in}@media (hover:hover){.${e}-arrow{opacity:0}.${e}-hoverwrap:hover .${e}-arrow{opacity:1}}`}),(0,r.jsxs)("div",{className:`${e}-hoverwrap`,style:{position:"relative",width:"100%"},children:[(0,r.jsx)("div",{ref:P,className:e,style:{gap:i},...D?{}:B,children:ej(em)}),o&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:`${e}-arrow`,style:{position:"absolute",left:8,top:"26%",transform:"translateY(-50%)",zIndex:5},children:(0,r.jsx)(Y,{direction:"prev",dark:ei,disabled:!1,onClick:M,imageUrl:en})}),(0,r.jsx)("div",{className:`${e}-arrow`,style:{position:"absolute",right:8,top:"26%",transform:"translateY(-50%)",zIndex:5},children:(0,r.jsx)(Y,{direction:"next",dark:ei,disabled:!1,onClick:L,imageUrl:eo})})]})]}),l&&(0,r.jsx)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",gap:8,marginTop:16},children:Array.from({length:ey},(e,t)=>(0,r.jsx)(Z,{active:t===eb,label:ec(t),onClick:()=>(e=>{S(e);let t=P.current;if(!t)return;let r=t.children[e*ex];r&&t.scrollTo({left:r.offsetLeft,behavior:"smooth"})})(t),size:el,color:ea,activeColor:es,inactiveOpacity:ed},`scroll-dot-${t}`))})]})}if(!eu&&!ep||D&&!ef)return(0,r.jsx)(N.Div,{...d,...t,src:s,editorProps:v(j),editorContext:u,children:ej(em)});if(D){let e=em.length,i=Math.min(k,Math.max(0,e-1)),n=em.slice(i,i+1),o=e>1,l=ep&&!0===t.arrowShowMobile&&o,a=t=>S(Math.min(e-1,Math.max(0,t))),c=(t,r)=>{if(null==t)return!1;let n=r-t;if(40>Math.abs(n))return!1;let o=n<0?i+1:i-1;return S(Math.min(e-1,Math.max(0,o))),!0},p=eh&&o?{onTouchStart:e=>{E.current=e.touches[0]?.clientX??null},onTouchEnd:e=>{let t=E.current;E.current=null,c(t,e.changedTouches[0]?.clientX??t??0)},onMouseDown:e=>{E.current=e.clientX},onMouseUp:e=>{let t=E.current;E.current=null,c(t,e.clientX)&&(I.current=!0)},onClickCapture:e=>{I.current&&(e.preventDefault(),e.stopPropagation(),I.current=!1)}}:{};return(0,r.jsxs)(N.Div,{...d,...t,src:s,style:{...F,display:"flex",flexDirection:"column",alignItems:"stretch",gap:void 0,paddingLeft:16,paddingRight:16,position:l?"relative":F?.position},editorProps:v(j),editorContext:u,children:[l&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{style:{position:"absolute",left:8,top:"30%",transform:"translateY(-50%)",zIndex:5},children:(0,r.jsx)(Y,{direction:"prev",dark:ei,disabled:0===i,onClick:()=>a(i-1),imageUrl:en})}),(0,r.jsx)("div",{style:{position:"absolute",right:8,top:"30%",transform:"translateY(-50%)",zIndex:5},children:(0,r.jsx)(Y,{direction:"next",dark:ei,disabled:i===e-1,onClick:()=>a(i+1),imageUrl:eo})})]}),(0,r.jsx)("div",{style:{width:"100%",touchAction:eh?"pan-y":void 0,userSelect:eh?"none":void 0},...p,children:ej(n,i)}),o&&(0,r.jsx)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",gap:8,marginTop:16},children:Array.from({length:e},(e,t)=>(0,r.jsx)(Z,{active:t===i,label:ec(t),onClick:()=>S(t),size:el,color:ea,activeColor:es,inactiveOpacity:ed},`mobile-dot-${t}`))})]})}let eC=F?.gap,ek="side"===t.arrowLayout,eS=`dp-slider-${A}`,eT=(0,r.jsx)("div",{style:{display:"grid",gridTemplateColumns:"string"==typeof ee&&ee.trim()?ee:`repeat(${ex}, 1fr)`,width:"100%",gap:eC},children:ej(ew,eb*ex)}),e$=ev&&!ek&&(0,r.jsxs)("div",{style:{display:"flex",width:"100%",justifyContent:{left:"flex-start",center:"center",right:"flex-end"}[q]??"flex-end",alignItems:"center",gap:"8px",marginTop:"16px"},children:[(0,r.jsx)(Y,{direction:"prev",dark:ei,onClick:()=>S(Math.max(0,eb-1)),disabled:0===eb,imageUrl:en}),(0,r.jsx)(Y,{direction:"next",dark:ei,onClick:()=>S(Math.min(ey-1,eb+1)),disabled:eb===ey-1,imageUrl:eo}),U&&(0,r.jsxs)("span",{style:{fontSize:"13px",color:"#718096",marginLeft:"4px",userSelect:"none"},children:[eb+1," / ",ey]})]}),e_=ev&&ek&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:`${eS}-arrow`,style:{position:"absolute",left:8,top:"26%",transform:"translateY(-50%)",zIndex:5},children:(0,r.jsx)(Y,{direction:"prev",dark:ei,onClick:()=>S(Math.max(0,eb-1)),disabled:0===eb,imageUrl:en})}),(0,r.jsx)("div",{className:`${eS}-arrow`,style:{position:"absolute",right:8,top:"26%",transform:"translateY(-50%)",zIndex:5},children:(0,r.jsx)(Y,{direction:"next",dark:ei,onClick:()=>S(Math.min(ey-1,eb+1)),disabled:eb===ey-1,imageUrl:eo})})]}),eE=J&&ey>1&&(0,r.jsx)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",gap:8,marginTop:16},children:Array.from({length:ey},(e,t)=>(0,r.jsx)(Z,{active:t===eb,label:ec(t),onClick:()=>S(t),size:el,color:ea,activeColor:es,inactiveOpacity:ed}
78,`slider-dot-${t}`))});return(0,r.jsxs)(N.Div,{...d,...t,src:s,style:{...F,display:"flex",flexDirection:"column",alignItems:"stretch",gap:void 0,position:ek?"relative":F?.position},editorProps:v(j),editorContext:u,children:[ek?(0,r.jsxs)("div",{className:`${eS}-hoverwrap`,style:{position:"relative",width:"100%"},children:[(0,r.jsx)("style",{children:`.${eS}-arrow{opacity:0.4;transition:opacity .25s ease-in}@media (hover:hover){.${eS}-arrow{opacity:0}.${eS}-hoverwrap:hover .${eS}-arrow{opacity:1}}`}),eT,e_]}):(0,r.jsxs)(r.Fragment,{children:[eT,e$]}),eE]})}catch(e){return c&&console.error("[DataProviderRenderer] render error:",e),null}};var X=e.i(796080),Q=e.i(308650),ee=e.i(357548);let et={placeholderHtml:"Click to add HTML content",placeholderUrl:"Click to add website URL",previewHint:"Content ready - click Preview to see result",loadingText:"Loading website...",errorTitle:"Failed to load website",errorDescription:"Common causes:",errorReasonXFrame:"Website blocks iframe embedding (X-Frame-Options)",errorReasonCsp:"Content Security Policy restrictions",errorReasonInvalid:"Invalid or unreachable URL",errorRetry:"Retry",errorOpenNewTab:"Open in New Tab"},er=function(e){let{embedHtmlContent:t="",embedHtmlMode:o="sanitized",iframeUrl:l="",iframeHeight:a,labels:c,errorLabels:u,editorContext:f={},editorProps:{editorStyle:h,...m}={},enableFadeIn:g=!1,style:x,mobileStyle:y,tabletStyle:b,embeddedStyle:v,id:w,className:j,desktopId:C,tabletId:k,mobileId:S,desktopClassName:T,tabletClassName:$,mobileClassName:_}=e,{isEdit:E,previewMode:I}=f,N=(0,i.useMemo)(()=>{let e={...et,...c};return u&&(u.title&&(e.errorTitle=u.title),u.description&&(e.errorDescription=u.description),u.reasonXFrame&&(e.errorReasonXFrame=u.reasonXFrame),u.reasonCsp&&(e.errorReasonCsp=u.reasonCsp),u.reasonInvalid&&(e.errorReasonInvalid=u.reasonInvalid),u.retry&&(e.errorRetry=u.retry),u.openNewTab&&(e.errorOpenNewTab=u.openNewTab)),e},[c,u]),{fadeInStyle:A,domRef:P}=(0,s.default)(),[M,L]=(0,i.useState)(!0),[B,O]=(0,i.useState)({hasError:!1}),D=(0,i.useId)(),R=`embedhtml-${D.replace(/:/g,"")}`,[z,F]=(0,i.useState)(0),W=(0,i.useMemo)(()=>{if(!a)return x?.minHeight||"400px";switch(a.mode){case"preset":return a.presetValue||"400px";case"custom":return`${a.customValue||400}px`;case"aspectRatio":return"auto";default:return"400px"}},[a,x]),H=(0,i.useMemo)(()=>{if(a&&"aspectRatio"===a.mode)return({"16:9":"56.25%","4:3":"75%","1:1":"100%"})[a.aspectRatio||"16:9"]},[a]),q=a?.mode==="aspectRatio",U=(0,i.useCallback)(()=>{O({hasError:!1}),L(!0),F(e=>e+1)},[]),V=(0,i.useCallback)(()=>{if(l)try{let e=new URL(l,window.location.origin),t=e.protocol.toLowerCase();("http:"===t||"https:"===t)&&window.open(e.toString(),"_blank","noopener,noreferrer")}catch{}},[l]);(0,i.useEffect)(()=>{l&&"iframe"===o&&(L(!0),O({hasError:!1}))},[l,o]);let J=(0,X.useResponsiveAttributes)({id:w,className:j,desktopId:C,tabletId:k,mobileId:S,desktopClassName:T,tabletClassName:$,mobileClassName:_},f),G=(0,i.useMemo)(()=>{let e={...x,...g&&A,...h};if(E){let t="iframe"===o?q?"auto":W:"auto";return{...e,minHeight:t,..."MOBILE"===I&&y,..."TABLET"===I&&b}}return"iframe"!==o||q?e:{...e,minHeight:W}},[x,g,A,h,E,I,y,b,o,W,q]),Y=(0,d.default)({baseStyle:G,mobileStyle:y,tabletStyle:b,isEditMode:E}),Z=[ee.default.container,R,J.className].filter(Boolean).join(" "),K=(0,i.useMemo)(()=>(0,Q.sanitizeHtml)(t,"full"),[t]),er=(0,i.useMemo)(()=>{if("sanitized"!==o||!K)return null;try{return(0,n.default)(K)}catch(e){return console.error("EmbedHtml parsing error:",e),null}},[K,o]),ei=!t||""===t.trim(),en=!l||""===l.trim(),eo=(0,i.useMemo)(()=>{if(!l)return null;let e=q?`${ee.default.iframe} ${ee.default.aspectRatioIframe}`:ee.default.iframe;return(0,r.jsx)("iframe",{className:e,src:l,sandbox:"allow-scripts allow-same-origin allow-forms allow-popups allow-popups-to-escape-sandbox",referrerPolicy:"no-referrer",title:"Embedded External Website",loading:"lazy",onLoad:()=>L(!1),onError:()=>{L(!1),O({hasError:!0,url:l})}},`${l}-${z}`)},[l,z,q]);return"sanitized"===o?!E&&ei?null:E?(0,r.jsxs)(r.Fragment,{children:[v&&(0,r.jsx)("style",{dangerouslySetInnerHTML:{__html:`.${R} { ${(0,p.sanitizeEmbeddedCss)(v)} }`}}),(0,r.jsx)("div",{ref:P,id:J.id,className:Z,style:Y,...m,children:ei?(0,r.jsx)("div",{className:ee.default.emptyPlaceholder,children:N.placeholderHtml}):(0,r.jsxs)("div",{className:ee.default.editModePreviewContainer,children:[(0,r.jsx)("div",{className:ee.default.sandboxedPreview,children:er}),(0,r.jsx)("div",{className:ee.default.editModeOverlay,children:(0,r.jsx)("span",{className:ee.default.editModeHint,children:N.previewHint})})]})})]}):(0,r.jsxs)(r.Fragment,{children:[v&&(0,r.jsx)("style",{dangerouslySetInnerHTML:{__html:`.${R} { ${(0,p.sanitizeEmbeddedCss)(v)} }`}}),(0,r.jsx)("div",{ref:P,id:J.id,className:Z,style:Y,...m,children:er})]}):"iframe"===o?!E&&en?null:B.hasError?(0,r.jsxs)(r.Fragment,{children:[v&&(0,r.jsx)("style",{dangerouslySetInnerHTML:{__html:`.${R} { ${(0,p.sanitizeEmbeddedCss)(v)} }`}}),(0,r.jsx)("div",{ref:P,id:J.id,className:Z,style:Y,...m,children:(0,r.jsxs)("div",{className:ee.default.errorContainer,role:"alert","aria-live":"polite",children:[(0,r.jsx)("div",{className:ee.default.errorIcon,"aria-hidden":"true",children:(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,r.jsx)("circle",{cx:"12",cy:"12",r:"10"}),(0,r.jsx)("line",{x1:"12",y1:"8",x2:"12",y2:"12"}),(0,r.jsx)("line",{x1:"12",y1:"16",x2:"12.01",y2:"16"})]})}),(0,r.jsx)("h4",{className:ee.default.errorTitle,children:N.errorTitle}),(0,r.jsx)("p",{className:ee.default.errorDescription,children:N.errorDescription}),(0,r.jsxs)("ul",{className:ee.default.errorReasonList,children:[(0,r.jsx)("li",{children:N.errorReasonXFrame}),(0,r.jsx)("li",{children:N.errorReasonCsp}),(0,r.jsx)("li",{children:N.errorReasonInvalid})]}),(0,r.jsxs)("p",{className:ee.default.errorUrl,children:["URL: ",l]}),(0,r.jsxs)("div",{className:ee.default.errorActions,children:[(0,r.jsx)("button",{type:"button",className:ee.default.retryButton,onClick:U,"aria-label":N.errorRetry,children:N.errorRetry}),(0,r.jsx)("button",{type:"button",className:ee.default.openNewTabButton,onClick:V,"aria-label":N.errorOpenNewTab,children:N.errorOpenNewTab})]})]})})]}):E&&en?(0,r.jsxs)(r.Fragment,{children:[v&&(0,r.jsx)("style",{dangerouslySetInnerHTML:{__html:`.${R} { ${(0,p.sanitizeEmbeddedCss)(v)} }`}}),(0,r.jsx)("div",{ref:P,id:J.id,className:Z,style:Y,...m,children:(0,r.jsx)("div",{className:ee.default.emptyPlaceholder,children:N.placeholderUrl})})]}):q&&H?(0,r.jsxs)(r.Fragment,{children:[v&&(0,r.jsx)("style",{dangerouslySetInnerHTML:{__html:`.${R} { ${(0,p.sanitizeEmbeddedCss)(v)} }`}}),(0,r.jsxs)("div",{ref:P,id:J.id,className:Z,style:Y,...m,children:[M&&(0,r.jsx)("div",{className:ee.default.loadingOverlay,children:N.loadingText}),(0,r.jsx)("div",{className:ee.default.aspectRatioContainer,style:{paddingTop:H},children:eo})]})]}):(0,r.jsxs)(r.Fragment,{children:[v&&(0,r.jsx)("style",{dangerouslySetInnerHTML:{__html:`.${R} { ${(0,p.sanitizeEmbeddedCss)(v)} }`}}),(0,r.jsxs)("div",{ref:P,id:J.id,className:Z,style:Y,...m,children:[M&&(0,r.jsx)("div",{className:ee.default.loadingOverlay,children:N.loadingText}),eo]})]}):null};var ei=e.i(298364);let en=function(e){let{children:t,editorProps:{editorStyle:n,...o}={},style:l,mobileStyle:a,tabletStyle:s,embeddedStyle:c,isEdit:u=!1}=e,[p,f]=(0,i.useState)(!1),h=(0,i.useId)(),m=`expandable-div-${h.replace(/:/g,"")}`,g=u||p,x={...l,...n},y=(0,d.default)({baseStyle:x,mobileStyle:a,tabletStyle:s}),b=[ei.default.expandableDiv,g?ei.default.expanded:ei.default.collapsed,m].filter(
78Boolean).join(" "),v=t&&t[0],w=t&&t[1];return(0,r.jsxs)(r.Fragment,{children:[c&&(0,r.jsx)("style",{dangerouslySetInnerHTML:{__html:`.${m} { ${c} }`}}),(0,r.jsxs)("div",{className:b,style:y,role:"button",tabIndex:0,"aria-expanded":g,onClick:()=>f(e=>!e),onKeyDown:e=>{e.target===e.currentTarget&&("Enter"===e.key||" "===e.key)&&(e.preventDefault(),f(e=>!e))},...o,children:[v,w]})]})};e.s(["default",0,en],971137);var eo=e.i(640764),el=e.i(778743),ea=e.i(400749),es=e.i(824627),ed=e.i(844931),ec=new Map,eu=new Map,ep=!0,ef=!1;function eh(e){return e.replace(/[\s,]+/g," ").trim()}function em(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];"string"==typeof e&&(e=[e]);var i=e[0];return t.forEach(function(t,r){t&&"Document"===t.kind?i+=t.loc.source.body:i+=t,i+=e[r+1]}),function(e){var t=eh(e);if(!ec.has(t)){var r,i,n,o,l,a=(0,ed.parse)(e,{experimentalFragmentVariables:ef,allowLegacyFragmentVariables:ef});if(!a||"Document"!==a.kind)throw Error("Not a valid GraphQL document.");ec.set(t,((o=new Set((r=new Set,i=[],a.definitions.forEach(function(e){if("FragmentDefinition"===e.kind){var t,n=e.name.value,o=eh((t=e.loc).source.body.substring(t.start,t.end)),l=eu.get(n);l&&!l.has(o)?ep&&console.warn("Warning: fragment with name "+n+" already exists.\ngraphql-tag enforces all fragment names across your application to be unique; read more about\nthis in the docs: http://dev.apollodata.com/core/fragments.html#unique-names"):l||eu.set(n,l=new Set),l.add(o),r.has(o)||(r.add(o),i.push(e))}else i.push(e)}),n=(0,es.__assign)((0,es.__assign)({},a),{definitions:i})).definitions)).forEach(function(e){e.loc&&delete e.loc,Object.keys(e).forEach(function(t){var r=e[t];r&&"object"==typeof r&&o.add(r)})}),(l=n.loc)&&(delete l.startToken,delete l.endToken),n))}return ec.get(t)}(i)}var eg=em;(t=em||(em={})).gql=eg,t.resetCaches=function(){ec.clear(),eu.clear()},t.disableFragmentWarnings=function(){ep=!1},t.enableExperimentalFragmentVariables=function(){ef=!0},t.disableExperimentalFragmentVariables=function(){ef=!1},em.default=em;let ex=em;e.s(["default",0,ex],645022);let ey=(0,eo.getUnixTime)((0,el.startOfDay)(Date.now())),eb=ex` 79 mutation CreateLead( 80 $subdomain: String! 81 $identifier: String 82 $email: String! 83 ) { 84 createLead( 85 subdomain: $subdomain 86 identifier: $identifier 87 email: $email 88 metadata: { tags: ["teachify-email-form"] } 89 ) { 90 message 91 success 92 } 93 } 94`,ev=e=>{let{page:t=1,perPage:r=20,filter:i={}}=e,n=JSON.stringify(i||{}).replace(/"([^"]+)":/g,"$1:");return`query courses { 95 courses(subdomain: "{{subdomain}}", page: ${t}, perPage: ${r}, filter: ${n}) { 96 totalPages 97 nodesCount 98 nodes { 99 id 100 name 101 subtitle 102 slug 103 courseType 104 image 105 imageWidth 106 imageHeight 107 imageBlurDataUrl 108 isPurchased 109 plans { 110 amount 111 compareAtPrice 112 currencySymbol 113 } 114 formattedLecturers 115 lecturers { 116 name 117 avatar 118 } 119 totalHours 120 rating { 121 total 122 average 123 } 124 displayStudentsCount 125 courseFeatures { 126 studentsCount 127 } 128 preOrderInfo { 129 achievedPercentage 130 buyersGoal 131 buyersPledged 132 endedAt 133 expired 134 goalType 135 moneyGoal 136 moneyPledged 137 releasedAt 138 startedAt 139 } 140 } 141 } 142 }`},ew=e=>{let{page:t=1,perPage:r=20,filter:i={}}=e,n=JSON.stringify(i||{}).replace(/"([^"]+)":/g,"$1:");return`query PostsContainer { 143 posts(subdomain: "{{subdomain}}", page: ${t}, perPage: ${r}, filter: ${n}) { 144 totalPages 145 nodesCount 146 nodes { 147 id 148 title 149 slug 150 tags 151 subtitle 152 author { 153 name 154 avatar 155 headline 156 __typename 157 } 158 title 159 coverPhoto 160 accessType 161 tags 162 __typename 163 } 164 __typename 165 } 166 }`},ej=e=>{let{page:t=1,perPage:r=20,filter:i={}}=e,n=JSON.stringify(i||{}).replace(/"([^"]+)":/g,"$1:").replace(/^{|}$/g,"");return`query sessions { 167 sessions( 168 subdomain: "{{subdomain}}", 169 page: ${t}, 170 perPage: ${r}, 171 filter: { endedAt: { gte: ${ey} }, ${n} }, 172 sorting: { column: "started_at", order: "asc" }, 173 ) { 174 nodes { 175 id 176 name 177 slug 178 coverPhoto 179 tickets { 180 amount 181 } 182 startedAt 183 endedAt 184 } 185 }, 186 passSessions: sessions( 187 subdomain: "{{subdomain}}", 188 filter: { endedAt: { lt: ${ey} }}, 189 sorting: { column: "started_at", order: "desc" } 190 perPage: 20, 191 ) { 192 nodes { 193 id 194 name 195 slug 196 coverPhoto 197 tickets { 198 amount 199 } 200 startedAt 201 endedAt 202 } 203 } 204 }`},eC=e=>{let{page:t=1,perPage:r=20,filter:i={}}=e,n=JSON.stringify(i||{}).replace(/"([^"]+)":/g,"$1:");return`query LecturersContainer { 205 lecturers(subdomain: "{{subdomain}}", page: ${t}, perPage: ${r}, filter: ${n}) { 206 totalPages 207 nodesCount 208 nodes { 209 id 210 slug 211 name 212 avatar
213 headline 214 description 215 skills 216 } 217 } 218 }`},ek=e=>{let{page:t=1,perPage:r=20,filter:i={}}=e,n=JSON.stringify(i||{}).replace(/"([^"]+)":/g,"$1:");return`query PlansContainer { 219 membershipPlans(subdomain: "{{subdomain}}", page: ${t}, perPage: ${r}, filter: ${n}) { 220 totalPages 221 nodesCount 222 nodes { 223 id 224 slug 225 name 226 __typename 227 description 228 amount 229 currencySymbol 230 currency 231 recurring 232 remainingItemsCount 233 planType 234 endedAt 235 intervalCount 236 interval 237 coverPhoto 238 } 239 } 240 }`},eS=e=>{let{page:t=1,perPage:r=20,filter:i={}}=e,n=JSON.stringify(i||{}).replace(/"([^"]+)":/g,"$1:");return`query DigitalDownloads { 241 digitalProducts(subdomain: "{{subdomain}}", page: ${t}, perPage: ${r}, filter: ${n}) { 242 totalPages 243 nodesCount 244 nodes { 245 id 246 slug 247 coverPhoto 248 coverPhotoUrl 249 name 250 amount 251 currencySymbol 252 authors { 253 id 254 avatar 255 name 256 } 257 } 258 } 259 }`},eT=/^(\s*query)(\s*(?:\{|\())/;function e$(e){return e.replace(eT,"$1 CustomDataProvider$2")}let e_=void 0!==o.default&&o.default.env.NEXT_PUBLIC_KAIK_GRAPHQL_ENDPOINT||"https://kaik.io/graphql";function eE(e){return e&&"https://kaik.io/graphql"!==e?e:e_}let eI=new Map;function eN(e){let t=eE(e),r=eI.get(t);if(r)return r;let i=new ea.GraphQLClient(t);return eI.set(t,i),i}let eA=eN();e.s(["COURSES_QUERY",0,ev,"CreateLeadMutation",0,eb,"DIGITAL_DOWNLOADS_QUERY",0,eS,"KAIK_DEFAULT_GRAPHQL_ENDPOINT",0,e_,"LECTURERS_QUERY",0,eC,"MEMBERSHIP_PLANS_QUERY",0,ek,"POSTS_QUERY",0,ew,"SESSIONS_QUERY",0,ej,"ensureOperationName",0,e$,"getKaikClient",0,eN,"kaikClient",0,eA,"resolveKaikEndpoint",0,eE],667294);let eP={...e.i(985384).default,fontSize:"1rem",width:"auto"};e.s(["default",0,eP],802347);let eM=e=>e.replace(/[A-Z]+(?![a-z])|[A-Z]/g,(e,t)=>(t?"-":"")+e.toLowerCase());e.s(["default",0,eM],377831);var eL=e.i(997287);let eB=["display","position"],{display:eO,position:eD,...eR}=eP,ez=function(e){let{id:t,className:n,icon:o,enableFadeIn:l,editorProps:{editorStyle:a,...c}={},style:f,mobileStyle:h,tabletStyle:m,embeddedStyle:x,isEdit:b,linkProps:v}=e,{domRef:w,fadeInStyle:j}=(0,s.default)(),{isInsideLink:C}=(0,g.useLinkContext)(),k=(0,i.useId)(),S=`icon-${k.replace(/:/g,"")}`,T=(0,i.useMemo)(()=>({...f,...l&&j,...a}),[a,l,j,f]),$=(0,i.useMemo)(()=>{let e=(0,u.default)(T),t={...eR,...e};return eB.forEach(e=>{f?.[e]||delete t[e]}),t},[T,f]),_=(0,i.useMemo)(()=>({flexDirection:"column",...h}),[h]),E=(0,d.default)({baseStyle:$,mobileStyle:_,tabletStyle:m,isEditMode:b}),I=[eL.default.icon,S,n].filter(Boolean).join(" ");if(v&&v.href&&!C){let e={...E,textDecoration:"none",color:"inherit"};return(0,r.jsxs)(r.Fragment,{children:[x&&(0,r.jsx)("style",{dangerouslySetInnerHTML:{__html:`.${S} { ${(0,p.sanitizeEmbeddedCss)(x)} }`}}),(0,r.jsx)("a",{id:t,className:I,ref:w,style:e,href:(0,y.getSafeHref)(v.href,b),target:v.openNewTab?"_blank":"_self",rel:"noreferrer",...c,children:(0,r.jsx)("i",{className:`fa ${eM(o)}`})})]})}return(0,r.jsxs)(r.Fragment,{children:[x&&(0,r.jsx)("style",{dangerouslySetInnerHTML:{__html:`.${S} { ${(0,p.sanitizeEmbeddedCss)(x)} }`}}),(0,r.jsx)("span",{id:t,className:I,ref:w,style:E,...c,children:(0,r.jsx)("i",{className:`fa ${eM(o)}`})})]})};function eF(e){return"string"==typeof e&&e.trim().length>0}function eW(e){if(!e)return!1;let t=e.marginLeft,r=e.marginRight,i=e.margin;return!!("auto"===t&&"auto"===r||eF(i)&&/\bauto\b/i.test(i))||"auto"===t||"auto"===r}function eH(e){if(!eF(e))return!1;let t=e.trim().toLowerCase();return"100%"===t||"100vw"===t}e.s(["default",0,ez],735610);var eq=e.i(514450);let eU=["position","top","right","bottom","left","margin","marginTop","marginRight","marginBottom","marginLeft","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","width","minWidth","maxWidth","float","clear","transform","border","borderTop","borderRight","borderBottom","borderLeft","borderWidth","borderStyle","borderColor","borderRadius","boxShadow"],eV=["zIndex","outline","outlineOffset","transition","opacity"],eJ=e=>{if(!e)return{};let t={};
259return eU.forEach(r=>{void 0!==e[r]&&(t[r]=e[r])}),t},eG=e=>{if(!e)return{};let t={...e};return eU.forEach(e=>{delete t[e]}),t},eY={width:"100%",height:"auto",position:"relative",objectFit:"cover",objectPosition:"center",display:"block",flexShrink:0},eZ=function(e){let{id:t,className:n,src:o,text:l,editorProps:{editorStyle:a,...c}={},editorContext:h={},enableFadeIn:m,style:x,mobileStyle:b,tabletStyle:v,embeddedStyle:w,linkProps:j,rwdMode:C}=e,{domRef:k,fadeInStyle:S}=(0,s.default)(),{isEdit:T}=h,{isInsideLink:$}=(0,g.useLinkContext)(),_=(0,i.useId)(),E=`image-${_.replace(/:/g,"")}`,N=C||"all",A=N?.toUpperCase()===h?.previewMode,P=!!n,M=(0,i.useMemo)(()=>(e=>{if(!e)return{};let t={};return eV.forEach(r=>{void 0!==e[r]&&(t[r]=e[r])}),t})(a),[a]),L=(0,i.useMemo)(()=>{let e={...m&&S,...(0,f.convertBackgroundToObjectStyles)(x)};if(T)return{...e,..."MOBILE"===h.previewMode&&(0,f.convertBackgroundToObjectStyles)(b),..."TABLET"===h.previewMode&&(0,f.convertBackgroundToObjectStyles)(v)};let t={};return"MOBILE"===h.previewMode&&b?Object.assign(t,(0,f.convertBackgroundToObjectStyles)(b)):"TABLET"===h.previewMode&&v&&Object.assign(t,(0,f.convertBackgroundToObjectStyles)(v)),{...e,...t}},[h.previewMode,m,S,T,b,x,v]),B=(0,i.useMemo)(()=>eJ(L),[L]),O=(0,i.useMemo)(()=>eG(L),[L]),D=(0,i.useMemo)(()=>eJ(b),[b]),R=(0,i.useMemo)(()=>eJ(v),[v]),z=(0,i.useMemo)(()=>({...L,...M}),[L,M]),F=(0,i.useMemo)(()=>h?.previewMode!=="MOBILE"&&h?.previewMode!=="TABLET"?B:{...B,maxWidth:"100%",flexShrink:1},[B,h?.previewMode]),W=(0,d.default)({baseStyle:(0,f.filterCssModuleDefaults)((0,u.default)(z),eY),mobileStyle:b?(0,f.filterCssModuleDefaults)((0,f.convertBackgroundToObjectStyles)(b),eY):void 0,tabletStyle:v?(0,f.filterCssModuleDefaults)((0,f.convertBackgroundToObjectStyles)(v),eY):void 0,isEditMode:T}),H=(0,i.useMemo)(()=>{let e=(0,u.default)(O),t=(0,f.convertBackgroundToObjectStyles)(e);return(0,f.filterCssModuleDefaults)(t,eY)},[O]),q=(0,d.default)({baseStyle:H,mobileStyle:b?(0,f.filterCssModuleDefaults)((0,f.convertBackgroundToObjectStyles)(eG(b)),eY):void 0,tabletStyle:v?(0,f.filterCssModuleDefaults)((0,f.convertBackgroundToObjectStyles)(eG(v)),eY):void 0,isEditMode:T}),U=(0,d.default)({baseStyle:F,mobileStyle:D,tabletStyle:R,isEditMode:T}),V=(0,i.useMemo)(()=>(function(e){let{wrapperInlineStyle:t,rawContainerStyle:r,embeddedStyle:i}=e,n=function(e){if(!eF(e))return{hasWidth:!1,hasMaxWidth:!1,hasMinWidth:!1,hasAutoHorizontalMargin:!1};let t=e.toLowerCase(),r=/\bwidth\s*:/.test(t),i=/\bmax-width\s*:/.test(t);return{hasWidth:r,hasMaxWidth:i,hasMinWidth:/\bmin-width\s*:/.test(t),hasAutoHorizontalMargin:/\bmargin\s*:\s*[^;]*\bauto\b/.test(t)||/\bmargin-left\s*:\s*auto\b/.test(t)||/\bmargin-right\s*:\s*auto\b/.test(t)}}(i),o=!!r&&["width","minWidth","maxWidth"].some(e=>{let t=r[e];return null!=t&&("string"!=typeof t||"auto"!==t.trim().toLowerCase())&&("string"!=typeof t||""!==t.trim())})||n.hasWidth||n.hasMaxWidth||n.hasMinWidth,l=eW(t)||eW(r)||n.hasAutoHorizontalMargin,a=eH(r?.width)||eH(r?.maxWidth)||eH(t?.width)||eH(t?.maxWidth),s=t?.width,d=null!=s&&("string"!=typeof s||"auto"!==s.trim().toLowerCase())&&("string"!=typeof s||""!==s.trim())||n.hasWidth||n.hasMaxWidth||n.hasMinWidth,c=o&&!l;return a&&!(t&&(void 0!==t.justifyContent||void 0!==t.alignItems||void 0!==t.placeContent||void 0!==t.placeItems))?{display:"flex",justifyContent:"center",width:"100%"}:!c&&d?{}:c?a?{display:"flex",justifyContent:"center",width:"100%"}:{display:"block",marginLeft:"auto",marginRight:"auto"}:{display:"flex",justifyContent:"center",width:"100%"}})({wrapperInlineStyle:U,rawContainerStyle:B,embeddedStyle:w}),[B,w,U]),J=(0,i.useMemo)(()=>{let e=[];
259if(P&&e.push(`:where(.${E}) { 260 position: relative; 261 height: auto; 262 width: 100%; 263 object-fit: cover; 264 object-position: center; 265}`),w){let t=(0,p.scopeEmbeddedCss)(w,E,P);t&&e.push(t)}if(!T){let t=(0,f.generateRwdModeCss)(E,C);t&&e.push(t)}return e.join("\n")},[w,P,C,E,T]);if(!I.utils||!I.utils.imageProxySets)return console.error("utils or imageProxySets is undefined"),null;let G=I.utils?.imageProxySets(o)??{};if(j&&j.href&&!$){let e=[P?null:eq.default.imageLinkWrapper,E,n].filter(Boolean).join(" "),i=T&&!("all"===N||A)?{display:"none"}:{},a=w&&/z-index\s*:\s*-\d+/.test(w),{display:s,...d}=V,u=P?`:where(.${E})`:`.${E}`,p=[s?`${u} { display: ${s}; }`:"",J].filter(Boolean).join("\n");return(0,r.jsxs)("a",{href:(0,y.default)(j.href,T),target:j.openNewTab?"_blank":"_self",rel:"noreferrer",id:t,className:e,ref:k,style:{...U,...M,...i,...d,...a&&{zIndex:"auto"}},...c,children:[p&&(0,r.jsx)("style",{dangerouslySetInnerHTML:{__html:p}}),(0,r.jsx)("img",{className:eq.default.imageLinkWrapped,src:o,alt:l,...G,style:q,loading:"lazy"})]})}let Y=[P?null:eq.default.image,E,n].filter(Boolean).join(" "),Z=T&&!("all"===N||A)?{display:"none"}:{};return J?(0,r.jsxs)("span",{style:{display:"contents"},children:[(0,r.jsx)("style",{dangerouslySetInnerHTML:{__html:J}}),(0,r.jsx)("img",{id:t,className:Y,ref:k,style:{...W,...Z},src:o,alt:l,...G,...c,loading:"lazy"})]}):(0,r.jsx)("img",{id:t,className:Y,ref:k,style:{...W,...Z},src:o,alt:l,...G,...c,loading:"lazy"})};e.s(["default",0,eZ],307222);var eK=e.i(295016);let eX=["display","position"],eQ=function(e){let{id:t,className:n,defaultValue:o,placeholder:l,inputType:a,name:c,style:u,children:f,editorProps:{editorStyle:h,...m}={},editorContext:g={},mobileStyle:x,tabletStyle:y,enableFadeIn:b,embeddedStyle:v,inputAttr:w={}}=e,{domRef:j,fadeInStyle:C}=(0,s.default)(),k=(0,i.useId)(),S=`input-${k.replace(/:/g,"")}`,{isEdit:T}=g,$=(0,i.useMemo)(()=>{let e={...u,...b&&C,...h};return eX.forEach(t=>{u?.[t]||delete e[t]}),e},[h,b,C,u]),_=(0,d.default)({baseStyle:$,mobileStyle:x,tabletStyle:y,isEditMode:T}),E=[eK.default.input,S,n].filter(Boolean).join(" ");return(0,r.jsxs)(r.Fragment,{children:[v&&(0,r.jsx)("style",{dangerouslySetInnerHTML:{__html:`.${S} { ${(0,p.sanitizeEmbeddedCss)(v)} }`}}),(0,r.jsx)("input",{id:t,className:E,ref:j,style:_,name:c,type:a,placeholder:l,defaultValue:o,...m,...w})]})};var e0=e.i(501742);let e1=["display","position"],e2=function(e){let{id:t,className:n,style:o,children:l,href:a,isEdit:c,openNewTab:u,editorProps:{editorStyle:f,...h}={},editorContext:m={},mobileStyle:x,tabletStyle:b,enableFadeIn:v,embeddedStyle:w}=e,{domRef:j,fadeInStyle:C}=(0,s.default)(),{isInsideLink:k}=(0,g.useLinkContext)(),S=(0,i.useId)(),T=`link-${S.replace(/:/g,"")}`,$=m.isEdit??c,_=(0,i.useMemo)(()=>{let e={...o,...f,...v&&C,pointerEvents:$?"none":"auto",cursor:$?"default":"pointer"};return e1.forEach(t=>{o?.[t]||delete e[t]}),e},[f,v,C,$,o]),E=(0,d.default)({baseStyle:_,mobileStyle:x,tabletStyle:b,isEditMode:$}),I=[e0.default.link,T,n].filter(Boolean).join(" ");return k?(0,r.jsxs)(r.Fragment,{children:[w&&(0,r.jsx)("style",{dangerouslySetInnerHTML:{__html:`.${T} { ${(0,p.sanitizeEmbeddedCss)(w)} }`}}),(0,r.jsx)("span",{id:t,className:I,ref:j,style:E,...h,children:(0,r.jsx)(g.LinkProvider,{children:l})})]}):(0,r.jsxs)(r.Fragment,{children:[w&&(0,r.jsx)("style",{dangerouslySetInnerHTML:{__html:`.${T} { ${(0,p.sanitizeEmbeddedCss)(w)} }`}}),(0,r.jsx)("a",{id:t,className:I,ref:j,href:(0,y.getSafeHref)(a,$),target:u?"_blank":"_self",rel:"noreferrer",onClick:$?e=>{e.preventDefault()}:void 0,style:E,...h,children:(0,r.jsx)(g.LinkProvider,{children:l})})]})};var e5=e.i(154826);function e4(e){if(!e||"object"!=typeof e)return null;let t={};return"string"==typeof e.desktop&&(t.desktop=e.desktop),"string"==typeof e.tablet&&(t.tablet=e.tablet),"string"==typeof e.mobile&&(t.mobile=e.mobile),t}function e8(e,t,r){var i,n;let o=e||"",l=e4(t);if(!l)return o;let a=(i=r)&&i.isEdit&&i.previewMode?i.previewMode:(n=window.innerWidth)<=767?"MOBILE":n<=991?"TABLET":"DESKTOP",s="MOBILE"===a&&"string"==typeof l.mobile&&l.mobile.length>0?l.mobile:"TABLET"===a&&"string"==typeof l.tablet&&l.tablet.length>0?l.tablet:"string"==typeof l.desktop&&l.desktop.length>0?l.desktop:void 0;return o.length>0&&"string"==typeof s&&s!==o?o:s??o}function e6(e,t,r){let n=r?.isEdit??!1,[o,l]=(0,i.useState)(!1);if((0,i.useEffect)(()=>
265{l(!0)},[]),n)return e8(e,t,r);if(!o){let r=e||"",i=e4(t);if(!i)return r;let n="string"==typeof i.desktop&&i.desktop.length>0?i.desktop:void 0;return r.length>0&&void 0!==n&&n!==r?r:n??r}return e8(e,t,r)}var e3=e.i(688690),e7=e.i(555788);let e9=function(e){let{id:t,className:o,children:l,editorProps:{editorStyle:a,...c}={},editorContext:u,enableFadeIn:f=!1,style:h,text:m,_responsiveText:g,icon:x,gap:y,itemSpacing:b,listStyleType:v,embeddedStyle:w,mobileStyle:j,tabletStyle:C}=e,{domRef:k,fadeInStyle:S}=(0,s.default)(),T=(0,i.useId)(),$=`list-${T.replace(/:/g,"")}`,_=x&&(!v||"icon"===v),E=e6(m,g,u),I=(0,i.useMemo)(()=>(0,e3.isHtmlContent)(E),[E]),N=(0,i.useMemo)(()=>({...h,...f&&S,...a}),[a,f,S,h]),A=(0,d.default)({baseStyle:N,mobileStyle:j,tabletStyle:C,isEditMode:!1}),P=(0,i.useMemo)(()=>{let e=h?.textAlign;return"center"===e||"right"===e||"none"===v?"0":"1.2em"},[h?.textAlign,v]),M=(0,i.useMemo)(()=>{let e=h?.fontSize||"16px",t=h?.color||"#000000",r=h?.textAlign||"left",i=h?.fontWeight||"inherit",n=` 266 .${$} { 267 font-size: ${e}; 268 color: ${t}; 269 --list-padding-left: ${P}; 270 } 271 .${$} li { 272 text-align: ${r}; 273 font-size: ${e}; 274 font-weight: ${i}; 275 color: ${t}; 276 } 277 `,o=new Set(["disc","circle","square","none","decimal","decimal-leading-zero","lower-roman","upper-roman","lower-alpha","upper-alpha","lower-greek","lower-latin","upper-latin"]);return _?n+=`.${$} ul, .${$} ol { list-style: none; }`:v&&o.has(v)&&(n+=`.${$} ul, .${$} ol { list-style-type: ${v}; }`),b&&(n+=`.${$} li + li { margin-top: ${b}px; }`),n},[$,h?.fontSize,h?.color,h?.textAlign,h?.fontWeight,P,_,v,b]),L=(0,i.useMemo)(()=>{let e=I?E:e5.marked.parse(E),t=(0,Q.sanitizeHtml)(e);if(_){let e=I?(()=>{let e,r=[],i=/<li[^>]*>([\s\S]*?)<\/li>/gi;for(;null!==(e=i.exec(t));)r.push(e[1]);return r})():E.split("\n").filter(e=>/^[-*]\s/.test(e)).map(e=>{let t=e5.marked.parseInline(e.replace(/^[-*]\s+/,""));return(0,Q.sanitizeHtml)(t)});return(0,r.jsx)("ul",{children:e.map((e,t)=>(0,r.jsxs)("li",{style:{display:"flex",alignItems:"center",color:"currentcolor"},children:[(0,r.jsx)("span",{style:{float:"left",marginRight:y||0,fontSize:h?.fontSize||"inherit"},children:(0,r.jsx)("i",{className:`fa ${eM(x)}`})}),(0,n.default)(e)]},`${t}`))})}return(0,n.default)(t)},[E,y,I,x,_,h?.fontSize]),B=[e7.default.list,$,o].filter(Boolean).join(" ");return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("style",{dangerouslySetInnerHTML:{__html:M+(w?`.${$} { ${(0,p.sanitizeEmbeddedCss)(w)} }`:"")}}),(0,r.jsxs)("div",{id:t,className:B,ref:k,style:A,...c,children:[L,l]})]})};e.s(["default",0,e9],914886);var te=e.i(446821);let tt=function(e){let{params:t,styleParams:i,replaceObjectValues:n,componentData:o,editorContext:l,isEdit:a=!1,editorProps:s}=e,d=n({values:{...JSON.parse(t||"{}")},dataFeed:o});return(0,r.jsx)(N.Div,{...i,editorContext:l,editorProps:s,children:(0,r.jsx)(M,{isEdit:a,children:(0,r.jsx)(te.Progressbar,{suffix:d.suffix,prefix:d.prefix,value:d.value,barColor:d.barColor,barHeight:d.barHeight,textColor:d.textColor,showPresetIcon:d.showPresetIcon})})})};var tr=e.i(909133);let ti=function(e){let{params:t,styleParams:i,replaceObjectValues:n,componentData:o,editorContext:l,isEdit:a=!1,editorProps:s,t:d}=e,c=n({values:{...JSON.parse(t||"{}")},dataFeed:o});return(0,r.jsx)(N.Div,{...i,style:i.style,editorContext:l,editorProps:s,children:(0,r.jsx)(M,{isEdit:a,children:(0,r.jsx)(tr.Rating,{value:parseInt(c.value||"0",10)||0,fontSize:c.fontSize,isEditing:!1,prefixHint:d?d("general:bad"):void 0,suffixHint:d?d("general:good"):void 0})})})};var tn=e.i(500585);let to=function(e){let{id:t,className:n,brandInfo:o,sections:l,editorProps:{editorStyle:a,...c}={},enableFadeIn:u=!1,style:f,mobileStyle:h,tabletStyle:m,embeddedStyle:g}=e,{domRef:x,fadeInStyle:y}=(0,s.default)(),b=(0,i.useId)(),v=`siteurl-${b.replace(/:/g,"")}`,w=(0,i.useMemo)(()=>({...f,...u&&y,...a}),[a,u,y,f]),j=(0,i.useMemo)(()=>({flexDirection:"column",...h}),[h]),C=(0,d.default)({baseStyle:w,mobileStyle:j,tabletStyle:m}),k=[tn.default.siteUrl,v,n].filter(Boolean).join(" ");return(0,r.jsxs)(r.Fragment,{children:[g&&(0,r.jsx)("style",{dangerouslySetInnerHTML:{__html:`.${v} { ${(0,p.sanitizeEmbeddedCss)(g)} }`}}),(0,r.jsxs)("div",{id:t,className:k,ref:x,style:C,...c,children:[l&&(0,r.jsx)("div",{className:tn.default.sections,children:l.map((e,t)=>(0,r.jsxs)("div",{className:tn.default.section,children:[(0,r.jsx)("h3",{className:tn.default.sectionTitle,children:e.title}),e.sites.map(e=>{let{text:t,url:i}=e;return(0,r.jsx)("a",{className:tn.default.sectionLink,href:i,children:t},t)})]},`${e.title}_${t}`))}),o&&(0,r.jsxs)("div",{className:tn.default.brandInfo,children:[o.logo&&"image"===o.logo.type?(0,r.jsx)("img",{src:I.utils.imageProxy(o.logo.value,480),className:tn.default.logoImage}):(0,r.jsx)("h2",{className:tn.default.logoText,children:o.logo.value}),o.description&&(0,r.jsx)("p",{className:tn.default.description,children:o.description}),o.social&&(0,r.jsx)("div",{className:tn.default.icons,children:Object.entries(o.social).map(e=>{let[t,i]=e;return i?(0,r.jsx)("span",{style:{marginRight:"8px"},children:(0,r.jsx)("i",{className:`fa fa-${t}`})},t):null})})]})]})]})};e.s(["default",0,to],440597);var tl=e.i(880316);function ta(e){return e.replace(/ /gi," ").replace(/<[^>]*>/g,"")}function ts(e){return ta(e).trim().length>0}let td=function(e){let t,{id:n,className:o,endedAt:l,prefix:c,suffix:h,showUnits:m,language:g,isEdit:x,style:y,mobileStyle:b,tabletStyle:v,enableFadeIn:w,embeddedStyle:j,editorProps:{editorStyle:C,...k}={},rwdMode:S}=e,{fadeInStyle:T,domRef:$}=(0,s.default)(),_=(0,i.useId)(),E=`textcountdown-${_.replace(/:/g,"")}`,I=(0,i.useMemo)(()=>({...y,whiteSpace:"pre-line",...w&&T,...C}),[C,w,T,y]),N=(0,i.useMemo)(()=>(0,f.generateRwdModeCss)(E,S),[E,S]),A=(0,d.default)({baseStyle:(0,u.default)(I),mobileStyle:b,tabletStyle:v,isEditMode:x}),[P,M]=(0,i.useState)(void 0),L=(0,i.useRef)(void 0),B=(0,i.useMemo)(()=>
277Math.floor((P||0)/60/60/24),[P]),O=(0,i.useMemo)(()=>Math.floor((P||0)/60/60%24),[P]),D=(0,i.useMemo)(()=>Math.floor((P||0)/60%60),[P]),R=(0,i.useMemo)(()=>Math.floor((P||0)%60),[P]),z=(0,i.useCallback)(()=>{try{let e=parseInt(l,10),t=new Date().getTime()/1e3;M(e-t>0?e-t:0)}catch{}},[l]),F=(0,i.useCallback)(e=>{let t="D"===e?B:"H"===e?O:"M"===e?D:R;return function(e){let{digit:t,unit:r,language:i}=e,n=W[i||"en"][r];return"zh"===i?`${t} ${n}`:`${t}${n}`}({digit:t?.toString()??"",unit:e,language:g||"en"})},[B,O,g,D,R]),q=(0,i.useMemo)(()=>void 0===P?null:P<=0?H[g||"en"]:["D","H","M","S"].filter(e=>m.includes(e)).map(e=>F(e)).join(" "),[P,g,F,m]),U=c||"",V=h||"",J=null!==q&&ts(U)&&ts(q)&&0!==(t=ta(U)).length&&!/[\s\u00A0]$/.test(t);(0,i.useEffect)(()=>{try{parseInt(l,10)>=0&&(L.current=setInterval(z,1e3))}catch{}return()=>{clearInterval(L.current)}},[l,z]);let G=[tl.default.textCountdown,E,o].filter(Boolean).join(" "),Y=(0,e3.containsParagraphClosingHtml)(U)||(0,e3.containsParagraphClosingHtml)(V)?"div":"p",Z=(0,i.useMemo)(()=>{let e=[];return!x&&N&&e.push(N),j&&e.push(`.${E} { ${(0,p.sanitizeEmbeddedCss)(j)} }`),e.join("\n")},[x,N,j,E]);return(0,r.jsxs)(r.Fragment,{children:[Z&&(0,r.jsx)("style",{dangerouslySetInnerHTML:{__html:Z}}),(0,r.jsxs)(Y,{id:n,ref:$,className:G,style:A,...k,children:[(0,r.jsx)(a.RichText,{content:U,isEdit:x}),J?" ":null,q,(0,r.jsx)(a.RichText,{content:V,isEdit:x})]})]})};var tc=e.i(186281),tu=e.i(218555),tp=e.i(526e3);let tf={position:"relative",marginLeft:"0px",marginRight:"0px",marginTop:"0px",marginBottom:"0px",paddingLeft:"0px",paddingRight:"0px",paddingTop:"0px",paddingBottom:"0px",height:"auto",width:"100%",display:"block",borderRadius:"0px",borderWidth:"0px",borderColor:"#fff",borderStyle:"solid",color:"#000",fontSize:"16px",fontWeight:400,textAlign:"center",backgroundColor:"transparent",whiteSpace:"pre-line"},th=function(e){let{id:t,className:o,desktopId:l,tabletId:a,mobileId:c,desktopClassName:h,tabletClassName:m,mobileClassName:x,TextTag:b,text:v,_responsiveText:w,style:j,mobileStyle:C,tabletStyle:k,children:S,enableFadeIn:T,embeddedStyle:$,linkProps:_,editorProps:{editorStyle:E,...I}={},editorContext:N={},rwdMode:A}=e,{fadeInStyle:P,domRef:M}=(0,s.default)(),[L,B]=(0,i.useState)("all"),{isEdit:O,previewMode:D}=N,{isInsideLink:R}=(0,g.useLinkContext)(),z=(0,i.useId)(),F=`text-${z.replace(/:/g,"")}`,W=e6(v,w,N),H=(0,X.useResponsiveAttributes)({id:t,className:o,desktopId:l,tabletId:a,mobileId:c,desktopClassName:h,tabletClassName:m,mobileClassName:x},N),q=(0,i.useMemo)(()=>"p"!==b?b:O||(0,e3.containsParagraphClosingHtml)(W)?"div":b,[b,O,W]);(0,i.useEffect)(()=>{A&&B(A)},[A]);let U=L?.toUpperCase()===D,V=(0,i.useMemo)(()=>E?{position:E.position,zIndex:E.zIndex,outline:E.outline,outlineOffset:E.outlineOffset,transition:E.transition,...void 0!==E.opacity&&{opacity:E.opacity}}:{},[E]),J=(0,i.useMemo)(()=>{let e={};"all"===L||U||(e.display="none");let t={...T&&P,...j,position:"relative"};if(O)return{...t,..."MOBILE"===D&&C,..."TABLET"===D&&k,...e,...V,position:"relative"};let r={};switch(D){case"MOBILE":C&&Object.assign(r,C);break;case"TABLET":k&&Object.assign(r,k)}return{...t,...r,position:"relative"}},[T,P,O,D,C,L,U,j,k,V]),G=(0,d.default)({baseStyle:(0,f.filterCssModuleDefaults)((0,u.default)(J),tf),mobileStyle:C||void 0,tabletStyle:k||void 0,isEditMode:O}),{inlineStyles:Y,classStyles:Z}=(0,i.useMemo)(()=>{let e={...G,position:"relative"};return(0,f.separateStylesForCustomCssOverride)(e)},[G]),K=!!H.className,ee=(0,i.useMemo)(()=>{let e=(0,f.styleObjectToCssString)(Z);return e?`.${F} { ${e} }`:""},[Z,F]),et=(0,i.useMemo)(()=>{let e=[];
277if(K&&e.push(`:where(.${F}) { position: relative; width: 100%; text-align: center; }`),!O){let t=(0,f.generateRwdModeCss)(F,A);t&&e.push(t)}return $&&e.push(`.${F} { ${(0,p.sanitizeEmbeddedCss)($)} }`),ee&&e.push(ee),e.join("\n")},[$,ee,K,F,A,O]);e5.marked.setOptions({gfm:!1});let er=function(e){let t=e.toLowerCase(),r=t.length,i=0;for(;i<r;){let e=t.indexOf("<a",i);if(-1===e)break;let n=t[e+2];if(n&&/\s/.test(n)){let n=e+3,o=!1;for(;n<r&&">"!==t[n];){if(t.startsWith("href=",n)){o=!0;break}n++}if(o)return!0;i=n<r?n+1:r}else i=e+2}return!1}(W||""),ei=_&&_.href&&"#"!==_.href&&!R&&!er,en=(0,i.useMemo)(()=>{let e;e=(0,e3.isHtmlContent)(W)?(0,Q.sanitizeHtml)(W):(0,Q.sanitizeHtml)(e5.marked.parseInline(W,{}));let t={replace:e=>{let{attribs:i,children:n,name:o}=e;if("a"===o&&i?.href){let e=(i.class||"").includes("text-link--underline");return ei?(0,r.jsx)("span",{className:i.class,style:{color:"inherit",textDecoration:e?"underline":"none"},children:(0,tc.domToReact)(n,t)}):(0,r.jsx)("a",{href:O?void 0:i.href,target:i.target||"_self",rel:i.rel||"noopener noreferrer",className:i.class,style:{color:"inherit",textDecoration:e?"underline":"none",pointerEvents:O?"none":"auto",cursor:O?"text":"pointer"},onClick:O?e=>{e.preventDefault()}:void 0,children:(0,tc.domToReact)(n,t)})}if("span"===o&&i?.style){let e=(0,tu.convertInlineCssToObject)(i.style);return(0,r.jsx)("span",{style:e,className:i.class,children:(0,tc.domToReact)(n,t)})}if("strong"===o||"b"===o){let e=i?.style?(0,tu.convertInlineCssToObject)(i.style):void 0;return(0,r.jsx)("strong",{style:e,className:i?.class,children:(0,tc.domToReact)(n,t)})}if("em"===o||"i"===o){let e=i?.style?(0,tu.convertInlineCssToObject)(i.style):void 0;return(0,r.jsx)("em",{style:e,className:i?.class,children:(0,tc.domToReact)(n,t)})}return"script"===o&&(0,r.jsx)(r.Fragment,{})}};try{return(0,n.default)(e,t)}catch(e){return console.error("HTML parsing error:",e),(0,r.jsx)(r.Fragment,{children:W})}},[W,O,ei]),eo=[K?null:tp.default.text,F,H.className].filter(Boolean).join(" ");if(_&&_.href&&"#"!==_.href&&!R){let{margin:e,marginTop:t,marginBottom:i,...n}=Y,o=$&&/text-decoration/i.test($),l=j?.color&&"#000"!==j.color||$&&/(?:^|[;\s])color\s*:/i.test($),a={...n,...Y.marginLeft&&{marginLeft:Y.marginLeft},...Y.marginRight&&{marginRight:Y.marginRight},display:Y.display||("p"===b||b?.startsWith("h")?"block":"inline"),...o?{}:{textDecoration:"none"},...l?{}:{color:"inherit"},pointerEvents:"auto",cursor:O?"text":"pointer"};return(0,r.jsxs)("a",{href:(0,y.getSafeHref)(_.href,O),target:_.openNewTab?"_blank":"_self",rel:"noreferrer",id:H.id,ref:M,className:eo,style:a,onClick:O?e=>{e.preventDefault()}:void 0,...I,children:[en,S,et&&(0,r.jsx)("style",{dangerouslySetInnerHTML:{__html:et}})]})}let el={...Y,...!O&&!ei&&{pointerEvents:"none"}},ea={id:H.id,ref:M,className:eo,style:el,...I},es=et?(0,r.jsx)("style",{dangerouslySetInnerHTML:{__html:et}}):null;switch(q){case"h1":return(0,r.jsxs)("h1",{...ea,children:[en,S,es]});case"h2":return(0,r.jsxs)("h2",{...ea,children:[en,S,es]});case"h3":return(0,r.jsxs)("h3",{...ea,children:[en,S,es]});case"h4":return(0,r.jsxs)("h4",{...ea,children:[en,S,es]});case"span":return(0,r.jsxs)("span",{...ea,children:[en,S,es]});case"div":return(0,r.jsxs)("div",{...ea,children:[en,S,es]});default:return(0,r.jsxs)("p",{...ea,children:[en,S,es]})}};e.s(["default",0,th],983004);let tm=new Set(["youtube.com","www.youtube.com","m.youtube.com","youtu.be","youtube-nocookie.com","www.youtube-nocookie.com"]),tg=new Set(["vimeo.com","www.vimeo.com","player.vimeo.com"]);function tx(e){try{var t,r;let i=new URL(e);if(t=i.hostname,Array.from(tm).some(e=>t===e))return"youtube";if(r=i.hostname,Array.from(tg).some(e=>r===e))return"vimeo";return"unknown"}catch{return"unknown"}}function ty(e){var t,r;if(!e||"string"!=typeof e)return{type:"unknown",videoId:null,embedUrl:null,isValid:!1};let i=e.trim();if(!i)return{type:"unknown",videoId:null,embedUrl:null,isValid:!1};let n=tx(i),o=null,l=null;switch(n){case"youtube":l=(o=function(e){try{let t=new URL(e);if("youtu.be"===t.hostname)return t.pathname.slice(1)||null;if("/watch"===t.pathname)return t.searchParams.get("v");if(t.pathname.startsWith("/embed/")||t.pathname.startsWith("/shorts/")||t.pathname.startsWith("/live/")){let[,,e]=t.pathname.split("/");return e||null}return null}catch{return null}}(i))?(t=o,`https://www.youtube.com/embed/${t}`):null;break;case"vimeo":l=(o=function(e){try{let t=new URL(e);if(t.pathname.startsWith("/video/")){let[,,e]=t.pathname.split("/");return e||null}
277let r=t.pathname.split("/").filter(Boolean);if(1===r.length)return r[0];if(3===r.length&&"channels"===r[0])return r[2];return null}catch{return null}}(i))?(r=o,`https://player.vimeo.com/video/${r}`):null}return{type:n,videoId:o,embedUrl:l,isValid:!!(o&&l)}}var tb=e.i(714956),tv=e.i(991011);let tw=function(t){let{videoUrl:n,videoId:o,autoplay:l=!1,controls:a=!0,loop:s=!1,muted:c=!1,aspectRatio:u="16:9",height:p,children:f,isEdit:h=!1,styleProps:m,mobileStyle:g,tabletStyle:x,editorHandler:y,domRef:b}=t,v=(0,i.useRef)(null),[w,j]=(0,i.useState)(!1),C=(0,i.useRef)(null),k=(0,d.default)({baseStyle:m||{},mobileStyle:g,tabletStyle:x,isEditMode:h}),S=i.default.useMemo(()=>n&&"youtube"===tx(n)?n:o?`https://www.youtube.com/watch?v=${o}`:null,[n,o]);(0,i.useEffect)(()=>{if(!S)return;let t=v.current;if(!t)return;let r=!1;return(async()=>{try{if(await e.A(831889),r)return;let i=t.querySelector("youtube-video");i&&i.remove();let n=document.createElement("youtube-video");n.setAttribute("src",S),n.setAttribute("playsinline",""),a&&n.setAttribute("controls",""),l&&n.setAttribute("autoplay",""),s&&n.setAttribute("loop",""),(c||l)&&n.setAttribute("muted",""),n.style.cssText=` 278 position: absolute; 279 top: 0; 280 left: 0; 281 width: 100%; 282 height: 100%; 283 display: block; 284 `,C.current=n,t.appendChild(n),j(!0)}catch(e){console.error("[YouTubeVideo] Failed to load youtube-video-element:",e),console.error("[YouTubeVideo] Make sure youtube-video-element is installed in your app.")}})(),()=>{r=!0,C.current&&t.contains(C.current)&&(t.removeChild(C.current),C.current=null)}},[S,a,l,s,c]);let T=i.default.useMemo(()=>{if(!y)return{};let e={};for(let[t,r]of Object.entries(y))("function"==typeof r||t.startsWith("data-"))&&(e[t]=r);return e},[y]);return(0,r.jsxs)("div",{ref:b,className:tv.default.youtubeVideoWrapper,style:k,...T,children:[(0,r.jsxs)("div",{ref:v,className:tv.default.youtubeVideoContainer,style:"custom"===u?{height:p||"400px",paddingBottom:0}:"1:1"===u?{paddingBottom:"100%"}:"4:3"===u?{paddingBottom:"75%"}:"9:16"===u?{paddingBottom:"177.78%"}:{paddingBottom:"56.25%"},children:[h&&(0,r.jsx)("div",{style:{position:"absolute",top:0,left:0,right:0,bottom:0,zIndex:999}}),!w&&(0,r.jsx)("div",{style:{position:"absolute",top:0,left:0,width:"100%",height:"100%",display:"flex",alignItems:"center",justifyContent:"center",background:"#000"},children:(0,r.jsxs)("svg",{width:"68",height:"48",viewBox:"0 0 68 48",fill:"none",children:[(0,r.jsx)("path",{d:"M66.52 7.74C65.74 4.68 63.38 2.28 60.36 1.46C55.05 0 34 0 34 0C34 0 12.95 0 7.64 1.46C4.62 2.28 2.26 4.68 1.48 7.74C0 13.12 0 24 0 24C0 24 0 34.88 1.48 40.26C2.26 43.32 4.62 45.72 7.64 46.54C12.95 48 34 48 34 48C34 48 55.05 48 60.36 46.54C63.38 45.72 65.74 43.32 66.52 40.26C68 34.88 68 24 68 24C68 24 68 13.12 66.52 7.74Z",fill:"#FF0000"}),(0,r.jsx)("path",{d:"M27 34L45 24L27 14V34Z",fill:"white"})]})})]}),f]})};e.s(["default",0,tw],639768);let tj=function(e){let{mp4:t,webm:n,videoUrl:o,videoType:l,embedUrl:a,autoplay:c=!1,controls:u=!0,loop:f=!1,muted:h=!1,aspectRatio:m="16:9",width:g,height:x,children:y,editorProps:{editorStyle:b,...v}={},editorContext:w={},enableFadeIn:j,style:C,mobileStyle:k,tabletStyle:S,embeddedStyle:T}=e,{domRef:$,fadeInStyle:_}=(0,s.default)(),{isEdit:E}=w,I=(0,i.useId)(),N=`video-${I.replace(/:/g,"")}`,A=(0,i.useMemo)(()=>(function(e){let{videoUrl:t,embedUrl:r,videoType:i}=e;if(r){let e=ty(r);return e.isValid?{type:i||e.type,videoId:e.videoId,embedUrl:r,isValid:!0}:{type:i||tx(r),videoId:e.videoId,embedUrl:r,isValid:!!e.videoId}}let n=ty(t);return n.isValid?n:{type:i||n.type,videoId:n.videoId,embedUrl:n.embedUrl,isValid:n.isValid}})({videoUrl:o,embedUrl:a,videoType:l}),[o,a,l]),P=A.embedUrl,M=A.type,L=A.videoId,B=(0,i.useMemo)(()=>({...C,...b,...j?_:{}}),[b,j,_,C]),O=(0,d.default)({baseStyle:B,mobileStyle:k,tabletStyle:S,isEditMode:E}),D=(0,i.useMemo)(()=>{if(!P)return null;try{let e=new URL(P),t=new URLSearchParams(e.search);if("youtube"===M){if(c&&t.set("autoplay","1"),u||t.set("controls","0"),f){t.set("loop","1");let r=L||e.pathname.split("/embed/")[1]||"";r&&t.set("playlist",r.split("?")[0])}h&&t.set("mute","1"),t.set("modestbranding","1"),t.set("rel","0")}else"vimeo"===M&&(c&&t.set("autoplay","1"),u||t.set("controls","0"),f&&t.set("loop","1"),h&&t.set("muted","1"),t.set("title","0"),t.set("byline","0"),t.set("portrait","0"));return e.search=t.toString(),e.toString()}catch(e){return console.warn("Invalid embed URL provided to Video element:",e),P}}
284,[P,M,L,c,u,f,h]),R=[tb.default.videoWrapper,N].filter(Boolean).join(" ");if(P&&"youtube"===M)return(0,r.jsx)(tw,{videoUrl:o||"",videoId:L,autoplay:c,controls:u,loop:f,muted:h,aspectRatio:m,height:x,isEdit:E,styleProps:{...O,...j?_:{}},mobileStyle:k,tabletStyle:S,editorHandler:v,domRef:$,children:y});if(P&&"vimeo"===M)return(0,r.jsxs)(r.Fragment,{children:[T&&(0,r.jsx)("style",{dangerouslySetInnerHTML:{__html:`.${N} { ${(0,p.sanitizeEmbeddedCss)(T)} }`}}),(0,r.jsxs)("div",{ref:$,className:R,style:O,...v,children:[(0,r.jsxs)("div",{className:tb.default.videoContainer,style:"custom"===m?{height:x||"400px",paddingBottom:0}:"1:1"===m?{paddingBottom:"100%"}:"4:3"===m?{paddingBottom:"75%"}:"9:16"===m?{paddingBottom:"177.78%"}:{paddingBottom:"56.25%"},children:[E&&(0,r.jsx)("div",{style:{position:"absolute",top:0,left:0,right:0,bottom:0,zIndex:999}}),(0,r.jsx)("iframe",{className:tb.default.iframe,src:D||void 0,title:"Video player",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0})]}),y]})]});return t||n?(0,r.jsxs)(r.Fragment,{children:[T&&(0,r.jsx)("style",{dangerouslySetInnerHTML:{__html:`.${N} { ${(0,p.sanitizeEmbeddedCss)(T)} }`}}),(0,r.jsxs)("div",{ref:$,className:R,style:O,...v,children:[(0,r.jsx)("div",{style:{position:"absolute",top:0,left:0,right:0,bottom:0,backgroundColor:"rgba(0,0,0,0.3)",zIndex:0}}),(0,r.jsxs)("video",{className:tb.default.video,autoPlay:c,loop:f,muted:h,controls:u,playsInline:!0,style:{width:"100%",height:"100%"},children:[t&&(0,r.jsx)("source",{src:t,type:"video/mp4"}),n&&(0,r.jsx)("source",{src:n,type:"video/webm"})]}),y]})]}):E?(0,r.jsxs)("div",{ref:$,className:R,style:O,...v,children:[(0,r.jsxs)("div",{style:{position:"relative",width:"100%",minHeight:"280px",background:"#F7FAFC",border:"2px dashed #CBD5E0",borderRadius:"8px",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",cursor:"pointer",transition:"all 0.2s ease"},onMouseEnter:e=>{e.currentTarget.style.borderColor="#A0AEC0",e.currentTarget.style.background="#EDF2F7"},onMouseLeave:e=>{e.currentTarget.style.borderColor="#CBD5E0",e.currentTarget.style.background="#F7FAFC"},children:[(0,r.jsx)("div",{style:{width:"64px",height:"64px",borderRadius:"50%",background:"#E2E8F0",display:"flex",alignItems:"center",justifyContent:"center",marginBottom:"16px"},children:(0,r.jsx)("svg",{width:"28",height:"28",viewBox:"0 0 24 24",fill:"none",style:{marginLeft:"3px"},children:(0,r.jsx)("path",{d:"M8 5.14v13.72L19 12L8 5.14z",fill:"#718096",stroke:"#718096",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})}),(0,r.jsxs)("div",{style:{textAlign:"center",color:"#2D3748"},children:[(0,r.jsx)("div",{style:{fontSize:"16px",fontWeight:"600",marginBottom:"6px"},children:"Add Video"}),(0,r.jsx)("div",{style:{fontSize:"14px",color:"#718096",fontWeight:"400"},children:"Click to add YouTube or Vimeo URL"})]}),(0,r.jsxs)("div",{style:{marginTop:"20px",display:"flex",gap:"12px",alignItems:"center"},children:[(0,r.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"6px",padding:"6px 12px",background:"#EDF2F7",borderRadius:"6px"},children:[(0,r.jsx)("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"#718096",children:(0,r.jsx)("path",{d:"M23.498 6.186a3.016 3.016 0 0 0-2.122-2.136C19.505 3.545 12 3.545 12 3.545s-7.505 0-9.377.505A3.017 3.017 0 0 0 .502 6.186C0 8.07 0 12 0 12s0 3.93.502 5.814a3.016 3.016 0 0 0 2.122 2.136c1.871.505 9.376.505 9.376.505s7.505 0 9.377-.505a3.015 3.015 0 0 0 2.122-2.136C24 15.93 24 12 24 12s0-3.93-.502-5.814zM9.545 15.568V8.432L15.818 12l-6.273 3.568z"})}),(0,r.jsx)("span",{style:{fontSize:"12px",color:"#718096",fontWeight:"500"},children:"YouTube"})]}),(0,r.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"6px",padding:"6px 12px",background:"#EDF2F7",borderRadius:"6px"},children:[(0,r.jsx)("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"#718096",children:(0,r.jsx)("path",{d:"M23.977 6.416c-.105 2.338-1.739 5.543-4.894 9.609-3.268 4.247-6.026 6.37-8.29 6.37-1.409 0-2.578-1.294-3.553-3.881L5.322 11.4C4.603 8.816 3.834 7.522 3.01 7.522c-.179 0-.806.378-1.881 1.132L0 7.197c1.185-1.044 2.351-2.084 3.501-3.128C5.08 2.701 6.266 1.984 7.055 1.91c1.867-.18 3.016 1.1 3.447 3.838.465 2.953.789 4.789.971 5.507.539 2.45 1.131 3.674 1.776 3.674.502 0 1.256-.796 2.265-2.385 1.004-1.589 1.54-2.797 1.612-3.628.144-1.371-.395-2.061-1.614-2.061-.574 0-1.167.121-1.777.391 1.186-3.868 3.434-5.757 6.762-5.637 2.473.06 3.628 1.664 3.493 4.797l-.013.01z"})}),(0,r.jsx)("span",{style:{fontSize:"12px",color:"#718096",fontWeight:"500"},children:"Vimeo"})]})]})]}),y]}):null};e.s(["default",0,tj],31362);let tC=/^\d+(?:\.\d+)?px$/;function tk(e){let t=[e?.style?.maxWidth,e?.style?.width,e?.tabletStyle?.maxWidth,e?.tabletStyle?.width].filter(e=>"string"==typeof e&&tC.test(e));return 0===t.length?"100vw":`(max-width: 768px) 100vw, ${Math.max(...t.map(parseFloat))}px`}function tS(e){if(!e)return{};try{return JSON.parse(e)}catch{return{}}}function tT(e,t){if(!e)return t?"_blank":"_self"}var t$=e.i(334831);let t_=function(){if("u"<typeof document)return;let e=document.getElementsByTagName("iframe");
284if(!e||!e[0])return;let t=e[0].contentDocument;t&&t.querySelectorAll("a").forEach(e=>{e.onclick=function(e){e.preventDefault()}})},tE=()=>(0,r.jsx)("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",style:{flexShrink:0},children:(0,r.jsx)("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"})}),tI=()=>(0,r.jsx)("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",style:{flexShrink:0},children:(0,r.jsx)("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8zm.5-13H11v6l5.25 3.15.75-1.23-4.5-2.67V7z"})});function tN(e){let t=e?.borderTopWidth,r=e?.borderTopColor;return t||r?{borderTopWidth:t,borderTopColor:r,borderTopStyle:t?"solid":void 0}:e?.borderTop?{borderTop:e.borderTop}:{}}function tA(e,t){return Object.entries(t).reduce((e,t)=>{let[r,i]=t;return e.replaceAll(`{{${r}}}`,String(i))},e)}function tP(e,t){let r=t.includes(":")?t.split(":").slice(1).join(":"):t;return e===t||e===r}function tM(e,t,r){if(!e)return r;let i=e(t);return tP(i,t)?r:i}function tL(e,t,r,i){if(!e)return tA(r,i);let n=e(t,i);return tP(n,t)?tA(r,i):n}function tB(e,t){return e?(0,r.jsx)("span",{style:{display:"block",color:t?.color,fontSize:t?.fontSize,fontWeight:t?.fontWeight},children:e}):null}function tO(e){let t,{cell:n,course:o,isEdit:l,t:a}=e,[s,d]=(0,i.useState)(null),c=o.preOrderInfo?.endedAt;(0,i.useEffect)(()=>{let e,t=()=>{let r=Date.now();if(d(r),!c)return;let i=1e3*c-r;i<=0||(e=setTimeout(t,Math.min(i,6e4)))};return t(),()=>clearTimeout(e)},[c]);let u=n.style;if(!c||null!==s&&1e3*c<s){if(!l)return null;t="5d 12h"}else if(null===s)t="â";else{let e=1e3*c-s,r=Math.floor(e/864e5),i=Math.floor(e%864e5/36e5),n=Math.floor(e%36e5/6e4);t=r>=1?tL(a,"general:custom_card.countdown_days_hours","{{days}}d {{hours}}h",{days:r,hours:i}):i>=1?tL(a,"general:custom_card.countdown_hours_mins","{{hours}}h {{minutes}}m",{hours:i,minutes:n}):tL(a,"general:custom_card.countdown_mins","{{minutes}}m",{minutes:n})}let p=u?.bgColor,f=n.showIcon??!0;return(0,r.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"6px",width:"100%",color:u?.color,fontSize:u?.fontSize,fontWeight:u?.fontWeight,...p?{backgroundColor:p,padding:"6px 12px"}:{}},children:[f&&(0,r.jsx)(tI,{}),n.prefixText&&(0,r.jsx)("span",{children:n.prefixText}),(0,r.jsx)("span",{children:t})]})}function tD(e,t,i,n,o,l){let a=arguments.length>6&&void 0!==arguments[6]&&arguments[6],s=arguments.length>7&&void 0!==arguments[7]&&arguments[7],d=arguments.length>8?arguments[8]:void 0,c=arguments.length>9&&void 0!==arguments[9]&&arguments[9],{fieldId:u,style:p}=e,f=e.showIcon??("studentCount"===u||"totalHours"===u),h=(0,y.getSafeHref)(e.link)||i,m=(e,t)=>t?f?(0,r.jsxs)("span",{style:{display:"inline-flex",alignItems:"center",gap:"4px",color:p?.color},children:[e,t]}):t:null;switch(u){case"coverImage":let g,x,b;return g=t.image||"https://warehouse.kaik.network/default-cover/course.jpg",x=I.utils.imageProxySets(g,{width:640})??{src:g},b=(0,r.jsx)("img",{...x,sizes:o,alt:t.name||"",style:{width:"100%",height:"auto",objectFit:"cover",display:"block",aspectRatio:p?.aspectRatio||"16/9",borderRadius:p?.borderRadius}}),n?b:(0,r.jsx)("a",{href:h,style:{display:"block",textDecoration:"none"},children:b});case"title":return v=tB(t.name,p),null==v||n||!h?v:(0,r.jsx)("a",{href:h,style:{display:"block",textDecoration:"none",color:"inherit"},children:v});case"lecturerName":return tB(t.formattedLecturers,p);case"lecturerAvatar":return function(e,t){let i=e.lecturers?.[0]?.avatar,n=e.lecturers?.[0]?.name||e.formattedLecturers||"",o=t?.fontSize||"40px";if(i)return(0,r.jsx)("img",{src:I.utils.imageProxy(i,128),alt:n,style:{width:o,height:o,borderRadius:"50%",objectFit:"cover",flexShrink:0}});if(!n)return null;let l=n.trim()[0]?.toUpperCase()||"?",a=t?.bgColor||"#5C7CFA",s=t?.textColor||"#fff";return(0,r.jsx)("div",{style:{width:o,height:o,borderRadius:"50%",backgroundColor:a,color:s,display:"flex",alignItems:"center",justifyContent:"center",fontSize:`calc(${o} * 0.45)`,fontWeight:600,flexShrink:0,userSelect:"none"},children:l})}(t,p);case"studentCount":return m((0,r.jsx)(tE,{}),tB(t.courseFeatures?.studentsCount?Number(t.courseFeatures.studentsCount).toLocaleStr
284ing("en-US"):null,p));case"totalHours":{let e=(()=>{if(!t.totalHours)return null;let e=Math.round(60*Number(t.totalHours)),r=Math.floor(e/60),i=e%60;return 0===i?tL(l,"general:custom_card.hours_only","{{hours}} hr",{hours:r}):tL(l,"general:custom_card.hours_mins","{{hours}} hr {{minutes}} min",{hours:r,minutes:i})})();return m((0,r.jsx)(tI,{}),tB(e,p))}case"priceBlock":return function(e,t){let i=Array.isArray(e.plans)&&e.plans.length>0?e.plans[0]:null;if(!i?.amount)return null;let{amount:n,compareAtPrice:o}=i;return(0,r.jsxs)("div",{style:{display:"flex",alignItems:"baseline",gap:"8px",flexWrap:"wrap"},children:[(0,r.jsxs)("span",{style:{color:t?.color||"#ff7a35",fontSize:t?.fontSize||"18px",fontWeight:t?.fontWeight||"600"},children:["NT$",Number(n).toLocaleString()]}),o?(0,r.jsxs)("span",{style:{color:"#999",fontSize:"12px",textDecoration:"line-through"},children:["NT$",Number(o).toLocaleString()]}):null]})}(t,p);case"badge":return function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=arguments.length>3?arguments[3]:void 0,o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(o)return null;let l=n||e.badgeText||"";if(!l)return null;let a=e.style?.bgColor||"#ff9500",s=e.style?.textColor||"#fff",d=e.style?.fontSize||"12px",c=e.style?.borderRadius;return t?(0,r.jsx)("div",{style:{display:i?"inline-block":"block",...i?{whiteSpace:"nowrap"}:{width:"100%"},backgroundColor:a,color:s,fontSize:d,padding:"4px 8px",borderRadius:c,textAlign:e.style?.textAlign||"left"},children:l}):(0,r.jsx)("span",{style:{display:"inline-block",backgroundColor:a,color:s,fontSize:d,padding:"2px 8px",borderRadius:c||"4px",whiteSpace:"nowrap"},children:l})}(e,a,s,d,c);case"countdown":return(0,r.jsx)(tO,{cell:e,course:t,isEdit:n,t:l});case"progressBar":var v;let w=t.preOrderInfo;if(!w&&!n)return null;let j=w?.achievedPercentage??68,C=p?.bgColor||"#EA1345",k=p?.barHeight||"6px";return(0,r.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"8px",width:"100%"},children:[(0,r.jsx)("div",{style:{flex:1,height:k,backgroundColor:"#e5e7eb",borderRadius:"3px",overflow:"hidden"},children:(0,r.jsx)("div",{style:{height:"100%",width:`${Math.min(j,100)}%`,backgroundColor:C,borderRadius:"3px"}})}),(0,r.jsxs)("span",{style:{fontSize:p?.fontSize||"12px",fontWeight:p?.fontWeight,...p?.color?{color:p.color}:{},whiteSpace:"nowrap",flexShrink:0},children:[tM(l,"general:custom_card.achieved","Achieved")," ",Math.round(j),"%"]})]});case"enrollButton":let S,T,$,_,E,N,A,P,M;return S=e.buttonText||tM(l,"general:custom_card.enroll_now","Enroll Now"),T=e.style?.bgColor||"#132144",$=e.style?.textColor||"#fff",_=e.style?.fontSize||"14px",E=e.style?.fontWeight,N=e.style?.borderRadius||"4px",A=e.style?.border,M={display:"inline-block",backgroundColor:T,color:$,fontSize:_,fontWeight:E,padding:"8px 16px",borderRadius:N,border:A||"none",...(P=e.style?.borderColor)?{borderColor:P}:{},textAlign:"center",textDecoration:"none",cursor:n?"default":"pointer"},n?(0,r.jsx)("div",{style:M,children:S}):(0,r.jsx)("a",{href:i,style:M,children:S});default:return null}}var tR=e.i(476768),tz=e.i(809165),tF=e.i(282391);let tW=e=>/\s/.test(e);function tH(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)return e;let r=e.toLowerCase(),i=[],n=0,o=0;for(;-1!==(o=r.indexOf("<img",o));){let l=r[o+4];
284if(">"!==l&&"/"!==l&&!(l&&/\s/.test(l))){o+=4;continue}let a=function(e,t){let r=null;for(let i=t+1;i<e.length;i++){let t=e[i];if(r)t===r&&(r=null);else if('"'===t||"'"===t)r=t;else if(">"===t)return i+1}return -1}(e,o);if(-1===a)break;i.push(e.slice(n,o)),i.push(function(e,t){let{lazy:r}=t,i=e,n=function(e){let t=[],r=e.endsWith("/>")?e.length-2:e.length-1,i=4;for(;i<r;){let n,o=e[i];if(tW(o)||"/"===o){i++;continue}let l=i;for(;i<r&&!tW(e[i])&&"="!==e[i]&&"/"!==e[i];)i++;let a=e.slice(l,i).toLowerCase(),s=i,d=i;for(;d<r&&tW(e[d]);)d++;if("="===e[d]){for(d++;d<r&&tW(e[d]);)d++;let t=e[d];if('"'===t||"'"===t){let i=e.indexOf(t,d+1);n=e.slice(d+1,-1===i?r:i),d=-1===i?r:i+1}else{let t=d;for(;d<r&&!tW(e[d]);)d++;n=e.slice(t,d)}s=d,i=d}a&&t.push({name:a,start:l,end:s,value:n})}return t}(e),o=e=>n.some(t=>t.name===e),l=n.find(e=>"src"===e.name&&void 0!==e.value);if(l&&!o("srcset")){let e=(l.value??"").replace(/"/g,'"').replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">").replace(/&/g,"&"),t=I.utils?.imageProxySets?.(e);t&&t.src!==e&&(i=i.slice(0,l.start)+`src="${t.src.replace(/&/g,"&").replace(/"/g,""")}"`+i.slice(l.end))}if(r&&!o("loading")){let e=i.endsWith("/>")?i.length-2:i.length-1;i=i.slice(0,e).replace(/\s*$/,"")+' loading="lazy" decoding="async"'+(i.endsWith("/>")?" />":">")}return i}(e.slice(o,a),t)),n=a,o=a}return 0===n?e:(i.push(e.slice(n)),i.join(""))}var tq=e.i(956040),tU=e.i(261223);let tV={"kaik.courseCard":e=>{let{componentData:t,params:n,styleParams:o,isEdit:l,editorContext:a,getFilteredEditorProps:s,t:d}=e;return function(e){let{editorProps:c}=e,u=tS(n);return(0,i.useEffect)(()=>{l&&t_()},[]),(0,r.jsx)(N.Div,{...o,style:{...o.style,textAlign:"initial"},editorProps:s(c),editorContext:a,children:(0,r.jsx)(t$.CourseCard,{discountPriceText:d?d("general:discount_price"):void 0,preOrderPriceText:d?d("general:pre_order_price"):void 0,freeText:d?d("general:free"):void 0,badgeText:d?d("general:fundraising"):void 0,buttonColor:u.buttonColor,buttonTextColor:u.buttonTextColor,bgColor:u.bgColor,titleColor:u.titleColor,textColor:u.textColor,buttonText:u.buttonText,course:t,sourceSubdomain:u.sourceSubdomain})})}},"kaik.customCard":e=>{let{componentData:t,params:i,styleParams:n,isEdit:o,editorContext:l,getFilteredEditorProps:a,t:s}=e;return function(e){var d;let c,{editorProps:u}=e,p=t||{},f=tS(i),h=f.rows||[],m=(d=f.sourceSubdomain,c=p.slug||"",d?`https://${d}.kaik.io/courses/${c}`:`/courses/${c}`),g=tk(n),x=p?.id?f.badgeTextById?.[p.id]:void 0,y=!!p?.id&&!!f.badgeHiddenCourseIds?.includes(p.id),b=n.style?.paddingLeft||"0px",v=n.style?.paddingRight||"0px",w=new Set(h.filter(e=>e.rowStyle?.overlayOnImage).map(e=>e.id)),j=h.filter(e=>e.rowStyle?.overlayOnImage),C=function(e,t,i){let n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],l=arguments.length>4&&void 0!==arguments[4]&&arguments[4],a=e.filter(e=>e.fieldId),d=a.map(e=>tD(e,p,m,o,g,s,n,l,x,y));if(d.every(e=>null===e))return null;let c=t?.justifyContent==="space-between",u=a.map((e,t)=>{let n=d[t];if(null===n)return c?(0,r.jsx)("div",{},t):null;let o=e.style?.textAlign;return(0,r.jsx)("div",{style:{...c?{minWidth:0}:l?{flexShrink:0}:{flex:1,minWidth:0},...o?{textAlign:o}:{},...i?{color:i}:{}},children:n},t)});return(0,r.jsx)("div",{style:{display:"flex",flexDirection:"row",alignItems:t?.alignItems||"center",justifyContent:t?.justifyContent||"flex-start",gap:t?.gap||"8px",...tN(t)},children:u})};return(0,r.jsx)(N.Div,{...n,style:{...n.style,paddingLeft:0,paddingRight:0,backgroundColor:f.cardBgColor||"#fff",borderRadius:f.cardBorderRadius||"8px",textAlign:"initial",display:"flex",flexDirection:"column",overflow:"hidden"},editorProps:a(u),editorContext:l,children:h.map(e=>{if(w.has(e.id))return null;let t=(e.cells||[]).filter(e=>e.fieldId);if(0===t.length)return null;if(1===t.length&&"coverImage"===t[0].fieldId){let i=tD(t[0],p,m,o,g,s);if(null===i&&0===j.length)return null;let n=e.rowStyle?.fullWidth??!0,l=n?"0px":b,a=n?"0px":v,d=t[0]?.style?.borderRadius;return(0,r.jsxs)("div",{style:{position:"relative",padding:n?0:`0 ${a} 0 ${l}`,marginTop:e.rowStyle?.marginTop,marginBottom:e.rowStyle?.marginBottom,width:"100%",flexShrink:0},children:[i,j.map(e=>{let t="top"===(e.rowStyle?.overlayPosition??"bottom"),i=t&&!e.rowStyle?.overlayFullWidth,n=C(e.cells,e.rowStyle,void 0,!0,i);if(null===n)return null;let o=e.cells.some(e=>
284"countdown"===e.fieldId||"badge"===e.fieldId);return(0,r.jsx)("div",{style:{position:"absolute",left:l,right:a,...t?{top:0,...!o&&{padding:`${e.rowStyle?.marginTop||"8px"} ${v} ${e.rowStyle?.marginBottom||"24px"} ${b}`,background:"linear-gradient(to bottom, rgba(0,0,0,0.72), transparent)",color:"white"}}:{bottom:0,borderRadius:d?`0 0 ${d} ${d}`:void 0,overflow:d?"hidden":void 0,...!o&&{padding:`${e.rowStyle?.marginTop||"24px"} ${v} ${e.rowStyle?.marginBottom||"8px"} ${b}`,background:"linear-gradient(to bottom, transparent, rgba(0,0,0,0.72))",color:"white"}}},children:n},e.id)})]},e.id)}let i=e.rowStyle?.justifyContent==="space-between",n=t.some(e=>"countdown"===e.fieldId&&e.style?.bgColor),l=e.rowStyle?.fullWidth??!1,a=t.map(e=>tD(e,p,m,o,g,s,!1,!1,x,y));if(a.every(e=>null===e))return null;let d=t.map((e,t)=>{let n=a[t];if(null===n)return i?(0,r.jsx)("div",{},t):null;let o=e.style?.textAlign;return(0,r.jsx)("div",{style:{...i?{minWidth:0}:{flex:1,minWidth:0},...o?{textAlign:o}:{}},children:n},t)});return(0,r.jsx)("div",{style:{padding:n||l?0:`0 ${v} 0 ${b}`,marginTop:e.rowStyle?.marginTop,marginBottom:e.rowStyle?.marginBottom,width:"100%"},children:(0,r.jsx)("div",{style:{display:"flex",flexDirection:"row",alignItems:e.rowStyle?.alignItems||"center",justifyContent:e.rowStyle?.justifyContent||"flex-start",padding:n?0:"4px 0",gap:e.rowStyle?.gap||"8px",...tN(e.rowStyle)},children:d})},e.id)})})}},"kaik.courseCard2":e=>{let{componentData:t,params:i,styleParams:n,isEdit:o,editorContext:l,getFilteredEditorProps:a}=e;return function(e){let{editorProps:s}=e,d=tS(i),c=t||{},u=d.sourceSubdomain?`https://${d.sourceSubdomain}.kaik.io/courses/${c.slug||""}`:`/courses/${c.slug||""}`,p=c.image||"https://warehouse.kaik.network/default-cover/course.jpg",f=I.utils.imageProxySets(p,{width:640})??{src:p},h=tk(n),m=c.name||"",g=c.formattedLecturers||(Array.isArray(c.lecturers)?c.lecturers.map(e=>e?.name).filter(Boolean).join(", "):""),x=Array.isArray(c.plans)&&c.plans.length>0?c.plans[0]:null,y=x?`${x.currencySymbol||""}${x.amount??""}`:"",b=d.bgColor||"#fff",v=d.titleColor||"#132144",w=d.textColor||"#666",j=d.priceColor||"#3037E3",C=d.buttonText||"Join",k=d.buttonColor||"#3037E3",S=d.buttonTextColor||"#fff",T=o?void 0:d.openNewTab?"_blank":"_self";return(0,r.jsxs)(N.Div,{...n,style:{...n.style,textAlign:"initial",backgroundColor:b,display:"flex",flexDirection:"column",alignItems:"stretch",justifyContent:"flex-start",height:"100%"},editorProps:a(s),editorContext:l,children:[o?(0,r.jsx)("div",{style:{paddingLeft:"0.5rem",paddingRight:"0.5rem",paddingTop:"0.5rem",paddingBottom:"0.5rem",width:"100%",display:"flex",alignItems:"center",justifyContent:"center"},children:(0,r.jsx)("img",{...f,sizes:h,alt:m,style:{width:"100%",height:"auto",objectFit:"cover",display:"block"}})}):(0,r.jsx)(M,{isEdit:o,children:(0,r.jsx)("a",{href:u,target:T,rel:"_blank"===T?"noopener noreferrer":void 0,style:{paddingLeft:"0.5rem",paddingRight:"0.5rem",paddingTop:"0.5rem",paddingBottom:"0.5rem",width:"100%",display:"flex",alignItems:"center",justifyContent:"center",textDecoration:"none"},children:(0,r.jsx)("img",{...f,sizes:h,alt:m,style:{width:"100%",height:"auto",objectFit:"cover",display:"block"}})})}),o?(0,r.jsx)("div",{style:{paddingLeft:"0.5rem",paddingRight:"0.5rem",paddingTop:"0.5rem",paddingBottom:"0.5rem",width:"100%",display:"flex",alignItems:"center",justifyContent:"center"},children:(0,r.jsxs)("div",{style:{width:"100%",display:"flex",flexDirection:"column"},children:[g?(0,r.jsx)("div",{style:{textAlign:"left",display:"block",color:w},children:g}):null,(0,r.jsx)("div",{style:{textAlign:"left",fontSize:"1.5rem",fontWeight:600,display:"block",width:"auto",marginLeft:"0",marginRight:"auto",color:v},children:m})]})}):(0,r.jsx)(M,{isEdit:o,children:(0,r.jsx)("a",{href:u,target:T,rel:"_blank"===T?"noopener noreferrer":void 0,style:{paddingLeft:"0.5rem",paddingRight:"0.5rem",paddingTop:"0.5rem",paddingBottom:"0.5rem",width:"100%",display:"flex",alignItems:"center",justifyContent:"center",textDecoration:"none",color:"#000"},children:(0,r.jsxs)("div",{style:{width:"100%",display:"flex",flexDirection:"column"},children:[g?(0,r.jsx)("div",{style:{textAlign:"left",display:"block",color:w},children:g}):null,(0,r.jsx)("div",{style:{textAlign:"left",fontSize:"1.5rem",fontWeight:600,display:"block",width:"auto",marginLeft:"0",marginRight:"auto",color:v},children:m})]})})}),(0,r.jsxs)("div",{style:{marginTop:"auto",padding:"0.5rem",width:"100%"},children:[(0,r.jsx)("div",{style:{textAlign:"right",color:j,fontWeight:600,display:"block",width:"100%",marginBottom:"12px"},children:y}),o?(0,r.jsx)("span",{style:{display:"block",width:"100%",textAlign:"center",color:S,backgroundColor:k,paddingTop:"12px",paddingBottom:"12px",borderRadius:"25px",fontWeight:600},children:C}):(0,r.jsx)(M,{isEdit:o,children:(0,r.jsx)("a",{href:u,target:T,rel:"_blank"===T?"noopener noreferrer":void 0,style:{textDecoration:"none",width:"100%",display:"block"},children:(0,r.jsx)("span",{style:{display:"block",width:"100%",textAlign:"center",color:S,backgroundColor:k,paddingTop:"12px",paddingBottom:"12px",borderRadius:"25px",fontWeight:600},children:C})})})]})]})}},"kaik.courseCard3":e=>{let{componentData:t,params:i,styleParams:n,isEdit:o,editorContext:l,getFilteredEditorProps:a}=e;return function(e){let{editorProps:s}=e,d=tS(i),c=t||{},u=d.sourceSubdomain?`https://${d.sourceSubdomain}.kaik.io/courses/${c.slug||""}`:`/courses/${c.slug||""}`,p=c.image||"https://warehouse.kaik.network/default-cover/course.jpg",f=I.utils.imageProxySets(p,{width:640})??{src:p},h=tk(n),m=c.name||"",g=c.subtitle||"",x="number"==typeof c.rating?.average?c.rating.average:parseFloat(c.rating?.average||"0")||0,y="number"==typeof c.rating?.total?c.rating.total:parseInt(c.rating?.total||"0",10)||0,b=c.totalHours||"",v=c.courseFeatures?.studentsCount||"",w=Array.isArray(c.plans)&&c.plans.length>0?c.plans[0]:null,j=w?.compareAtPrice??"",C=w?.amount??"",k=d.bgColor||"rgba(0,0,0,0)",S=d.titleColor||"#132144",T=d.textColor||"#666",$=d.labelText||"Trending",_=d.labelBgColor||"rgba(74, 144, 226, 1
284)",E=d.labelTextColor||"rgba(255, 255, 255, 1)",A=d.priceColor||"#ff7a35",P=o?void 0:d.openNewTab?"_blank":"_self";return(0,r.jsxs)(N.Div,{...n,style:{...n.style,textAlign:"initial",backgroundColor:k,display:"flex",flexDirection:"column",alignItems:"stretch",justifyContent:"flex-start"},editorProps:a(s),editorContext:l,children:[o?(0,r.jsx)("div",{style:{width:"100%"},children:(0,r.jsx)("img",{...f,sizes:h,alt:m,style:{width:"100%",height:"auto",objectFit:"cover",display:"block"}})}):(0,r.jsx)("a",{href:u,target:P,rel:"_blank"===P?"noopener noreferrer":void 0,style:{width:"100%",display:"block",textDecoration:"none"},children:(0,r.jsx)("img",{...f,sizes:h,alt:m,style:{width:"100%",height:"auto",objectFit:"cover",display:"block"}})}),(0,r.jsxs)("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",paddingTop:"8px",paddingBottom:"8px",paddingLeft:"12px",paddingRight:"12px",width:"100%"},children:[(0,r.jsx)("div",{style:{paddingTop:"4px",paddingBottom:"4px",paddingLeft:"4px",paddingRight:"4px",backgroundColor:_,color:E,fontSize:"12px",display:"block",whiteSpace:"nowrap"},children:$}),(0,r.jsxs)("div",{style:{display:"flex",alignItems:"center"},children:[b?(0,r.jsxs)("div",{style:{display:"flex",alignItems:"center"},children:[(0,r.jsx)("i",{className:"fa-solid fa-clock","aria-hidden":"true",style:{color:"rgba(155, 155, 155, 1)",fontSize:"12px",width:"12px",textAlign:"center",lineHeight:1}}),(0,r.jsxs)("span",{style:{marginLeft:"4px",color:"rgba(155, 155, 155, 1)",fontSize:"12px",lineHeight:1},children:[b," Hrs"]})]}):null,v?(0,r.jsxs)("div",{style:{display:"flex",alignItems:"center",marginLeft:b?"12px":"0"},children:[(0,r.jsx)("i",{className:"fa-solid fa-user","aria-hidden":"true",style:{color:"rgba(155, 155, 155, 1)",fontSize:"12px",width:"12px",textAlign:"center",lineHeight:1}}),(0,r.jsx)("span",{style:{marginLeft:"4px",color:"rgba(155, 155, 155, 1)",fontSize:"12px",lineHeight:1},children:Number(v).toLocaleString()})]}):null]})]}),(0,r.jsxs)("div",{style:{paddingLeft:"12px",paddingRight:"12px",display:"flex",flexDirection:"column",flex:1,alignItems:"flex-start",width:"100%"},children:[o?(0,r.jsx)("div",{style:{textAlign:"left",paddingTop:"8px",paddingBottom:"8px",fontSize:"21px",fontWeight:600,color:S},children:m}):(0,r.jsx)(M,{isEdit:o,children:(0,r.jsx)("a",{href:u,target:P,rel:"_blank"===P?"noopener noreferrer":void 0,style:{textAlign:"left",paddingTop:"8px",paddingBottom:"8px",fontSize:"21px",fontWeight:600,color:S,width:"100%",display:"block",textDecoration:"none"},children:m})}),g?(0,r.jsx)("div",{style:{textAlign:"left",fontSize:"18px",color:T},children:g}):null,(0,r.jsxs)("div",{style:{marginTop:"auto",width:"100%",display:"flex",justifyContent:"space-between",alignItems:"center",paddingLeft:"0px",paddingRight:"0px"},children:[(0,r.jsx)("div",{style:{display:"flex",alignItems:"center",width:"65%"},children:(0,r.jsx)(M,{isEdit:o,children:(0,r.jsxs)("div",{style:{display:"flex",alignItems:"center"},children:[(0,r.jsx)(tr.Rating,{value:x,fontSize:"18px",isEditing:!1}),(0,r.jsx)("div",{style:{marginLeft:"6px",color:"rgba(155, 155, 155, 1)",fontSize:"12px"},children:y?`(${y})`:""})]})})}),(0,r.jsxs)("div",{style:{display:"flex",flexDirection:"column",alignItems:"flex-end"},children:[j?(0,r.jsxs)("div",{style:{color:"#333",textDecoration:"line-through",fontSize:"12px"},children:["NT$",Number(j).toLocaleString()]}):null,C?(0,r.jsxs)("div",{style:{color:A,fontSize:"21px",fontWeight:600},children:["NT$",Number(C).toLocaleString()]}):null]})]})]})]})}},"kaik.courseCard4":e=>{let{componentData:t,params:n,styleParams:o,isEdit:l,editorContext:a,getFilteredEditorProps:s}=e;return function(e){let{editorProps:d}=e,c=(0,i.useId)().replace(/:/g,""),u=`pb-cc4-${c}`,p=tS(n),f=t||{},h=p.sourceSubdomain?`https://${p.sourceSubdomain}.kaik.io/courses/${f.slug||""}`:`/courses/${f.slug||""}`,m=f.image||"https://warehouse.kaik.network/default-cover/course.jpg",g=I.utils.imageProxySets(m,{width:640})??{src:m},x=tk(o),y=f.name||"",b=Array.isArray(f.lecturers)?f.lecturers[0]:void 0,v=f.formattedLecturers||b?.name||"",w=b?.headline||"",j=Array.isArray(f.plans)&&f.plans.length>0?f.plans[0]:null,C=j?.compareAtPrice??"",k=j?.amount??"",S=j?.currencySymbol||"NT$",T=f.displayStudentsCount??f.courseFeatures?.studentsCount??"",$=p.bgColor||"transparent",_=p.titleColor||"#ffffff",E=p.textColor||"rgba(148,163,184,1)",A=p.priceColor||"#ef4444",P=p.compareAtPriceColor||"rgba(148,163,184,1)",L=p.enrollmentColor||"rgba(148,163,184,1)",B=p.labelText||"",O=p.labelBgColor||"rgba(255,255,255,0.9)",D=p.labelTextColor||"#0f172a",R=!1!==p.showLecturer,z=!1!==p.showCompareAtPrice,F=!1!==p.showEnrollment,W=!1!==p.showBadge&&!!B,H=Number(p.titleFontSize)||18,q=Number(p.titleLineClamp)||2,U=Number(p.titleLineHeight)||1.4,V=tT(l,p.openNewTab),J=(0,r.jsxs)("div",{className:"pb-cc4-image",style:{position:"relative",width:"100%"},children:[(0,r.jsx)("img",{...g,sizes:x,alt:y,style:{width:"100%",height:"auto",aspectRatio:"16 / 9",objectFit:"cover",display:"block"}}),W?(0,r.jsx)("span",{className:"pb-cc4-badge",style:{position:"absolute",left:12,bottom:12,display:"inline-block",padding:"6px 12px",backgroundColor:O,color:D,fontSize:12,fontWeight:600,borderRadius:4,whiteSpace:"nowrap",lineHeight:1.4},children:B}):null]}),G=` 285 @media (max-width: 767px) { 286 .${u} .pb-cc4-image .pb-cc4-badge { 287 position: static !important; 288 left: auto !important; 289 bottom: auto !important; 290 margin-top: 12px !important; 291 } 292 } 293 `;
293return(0,r.jsxs)(N.Div,{...o,className:[o.className,u].filter(Boolean).join(" "),style:{...o.style,textAlign:"initial",backgroundColor:$,display:"flex",flexDirection:"column",alignItems:"stretch",justifyContent:"flex-start"},editorProps:s(d),editorContext:a,children:[(0,r.jsx)("style",{children:G}),l?J:(0,r.jsx)("a",{href:h,target:V,rel:"_blank"===V?"noopener noreferrer":void 0,style:{width:"100%",display:"block",textDecoration:"none"},children:J}),(0,r.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:8,paddingTop:12,width:"100%"},children:[l?(0,r.jsx)("div",{style:{fontSize:H,fontWeight:700,lineHeight:U,color:_,display:"-webkit-box",WebkitLineClamp:q,WebkitBoxOrient:"vertical",overflow:"hidden"},children:y}):(0,r.jsx)(M,{isEdit:l,children:(0,r.jsx)("a",{href:h,target:V,rel:"_blank"===V?"noopener noreferrer":void 0,style:{fontSize:H,fontWeight:700,lineHeight:U,color:_,textDecoration:"none",display:"-webkit-box",WebkitLineClamp:q,WebkitBoxOrient:"vertical",overflow:"hidden"},children:y})}),R&&v?(0,r.jsxs)("div",{style:{fontSize:13,color:E,lineHeight:1.4},children:[(0,r.jsx)("span",{children:v}),w?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("span",{style:{margin:"0 8px",color:E,opacity:.5},children:"|"}),(0,r.jsx)("span",{children:w})]}):null]}):null,(0,r.jsxs)("div",{style:{display:"flex",alignItems:"baseline",justifyContent:"space-between",marginTop:4,flexWrap:"wrap",gap:8},children:[(0,r.jsxs)("div",{style:{display:"flex",alignItems:"baseline",gap:8},children:[k?(0,r.jsxs)("span",{style:{color:A,fontSize:22,fontWeight:700,lineHeight:1},children:[S,Number(k).toLocaleString()]}):null,z&&C?(0,r.jsxs)("span",{style:{color:P,fontSize:13,textDecoration:"line-through",lineHeight:1},children:[S,Number(C).toLocaleString()]}):null]}),F&&T?(0,r.jsxs)("div",{style:{display:"inline-flex",alignItems:"center",color:L,fontSize:13,lineHeight:1,gap:4},children:[(0,r.jsx)("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",children:(0,r.jsx)("path",{fillRule:"evenodd",d:"M7.5 6a4.5 4.5 0 1 1 9 0 4.5 4.5 0 0 1-9 0ZM3.751 20.105a8.25 8.25 0 0 1 16.498 0 .75.75 0 0 1-.437.695A18.683 18.683 0 0 1 12 22.5c-2.786 0-5.433-.608-7.812-1.7a.75.75 0 0 1-.437-.695Z",clipRule:"evenodd"})}),(0,r.jsx)("span",{children:Number(T).toLocaleString()})]}):null]})]})]})}},"kaik.digitalDownloadCard":e=>{let{componentData:t,params:n,styleParams:o,isEdit:l,editorContext:a,getFilteredEditorProps:s,t:d}=e;return function(e){let{editorProps:c}=e,u=tS(n);return(0,i.useEffect)(()=>{l&&t_()},[]),(0,r.jsx)(N.Div,{...o,style:{...o.style,textAlign:"initial","> div":{height:"100%"}},editorProps:s(c),editorContext:a,children:(0,r.jsx)(tR.ProductCard,{product:t,buttonColor:u.buttonColor,buttonTextColor:u.buttonTextColor,bgColor:u.bgColor,titleColor:u.titleColor,textColor:u.textColor,buttonText:u.buttonText,freeText:d?d("general:free"):void 0})})}},"kaik.eventCard":e=>{let{componentData:t,params:n,styleParams:o,isEdit:l,editorContext:a,getFilteredEditorProps:s}=e;return function(e){let{editorProps:d}=e,c=tS(n);return(0,i.useEffect)(()=>{l&&t_()},[]),(0,r.jsx)(N.Div,{...o,style:{...o.style,textAlign:"initial"},editorProps:s(d),editorContext:a,children:(0,r.jsx)(tz.EventCard,{event:t||{name:"Test Event",coverPhoto:"",slug:"anime",tickets:[{amounts:300}],startedAt:0x61cd6700,endedAt:0x61cd8320},bgColor:c.bgColor,titleColor:c.titleColor,textColor:c.textColor})})}},"kaik.lecturerCard":e=>{let{componentData:t,styleParams:n,isEdit:o,editorContext:l,getFilteredEditorProps:a}=e;return function(e){let{editorProps:s}=e;(0,i.useEffect)(()=>{o&&t_()},[]);let d=t||{id:"lecturer1",slug:"abc",avatar:"",description:"<p>Investig ationes demons travge vunt lectores legee lrus quodk legunt saepius was claritas kesty conctetur kedadip sicing. Dummy text of the printing and typesetting industry. It was popularised in the 1960s with the release of Letraset sheets contain luing lorem Ipsum passages, and more recently with desktop publishing.</p>",headline:"Web Developer and Instructor",name:"Kapi Walson",skills:["Skill 1","Skill 2"]},c=(0,i.useMemo)(()=>d.description?{...d,description:tH((0,Q.sanitizeHtml)(d.description,"full"))}:d,[d]);return(0,r.jsx)(N.Div,{...n,style:{...n.style},editorProps:a(s),editorContext:l,children:(0,r.jsx)(tF.LecturerCard,{lecturer:c})})}},"kaik.membershipPlanCard":e=>{let{componentData:t,styleParams:n,isEdit:o,editorContext:l,getFilteredEditorProps:a,t:s,actions:d}=e;return function(e){let{editorProps:c}=e;return(0,i.useEffect)(()=>{o&&t_()},[]),(0,r.jsx)(N.Div,{...n,style:{...n.style,textAlign:"initial"},editorProps:a(c),editorContext:l,children:(0,r.jsx)(M,{isEdit:o,children:(0,r.jsx)(tq.MembershipPlanCard,{plan:t,onClick:()=>
293{if(o)return;let e=d?.onPlanSelect;if("function"==typeof e)return e({plan:t});console.warn("Click function: onPlanSelect in kaik.membershipPlanCard")},btnText:s?s("plan:choose_this_plan"):void 0,readMoreText:s?s("plan:read_more"):void 0})})})}},"kaik.postCard":e=>{let{componentData:t,params:n,styleParams:o,isEdit:l,editorContext:a,getFilteredEditorProps:s}=e;return function(e){let{editorProps:d}=e,c=tS(n);return(0,i.useEffect)(()=>{l&&t_()},[]),(0,r.jsx)(N.Div,{...o,style:{...o.style,textAlign:"initial"},editorProps:s(d),editorContext:a,children:(0,r.jsx)(tU.PostCard,{post:t||{accessType:"public_access",author:{name:"Lloyd Harber",avatar:"",headline:"Web Developer and Instructor"},coverPhoto:null,id:"1058ca2b-460c-46fe-afbe-7021e28084fc",slug:"mrtfoods",subtitle:"Test",tags:["tag1","tag2"],title:"Test Title",__typename:"Post"},bgColor:c.bgColor,titleColor:c.titleColor,textColor:c.textColor})})}},"kaik.postCard2":e=>{let{componentData:t,params:i,styleParams:n,isEdit:o,editorContext:l,getFilteredEditorProps:a}=e;return function(e){let{editorProps:s}=e,d=tS(i),c=t||{},u=`/posts/${c.slug||""}`,p=c.coverPhoto||"https://warehouse.kaik.network/default-cover/post.jpg",f=c.title||"",h=c.subtitle||c.description||"",m=Array.isArray(c.tags)&&c.tags.length>0?c.tags[0]:"",g=d.bgColor||"rgba(30,41,59,1)",x=d.titleColor||"#ffffff",y=d.textColor||"rgba(148,163,184,1)",b=d.tagBgColor||"rgba(15,23,42,0.9)",v=d.tagTextColor||"#ffffff",w=!1!==d.showTag&&!!m,j=tT(o,d.openNewTab),C=(0,r.jsx)("div",{style:{width:"100%",height:"100%",minHeight:200,aspectRatio:"16 / 11",backgroundColor:"#0f172a",backgroundImage:`url("${I.utils.imageProxy(p,I.utils.MAX_PROXY_WIDTH)}")`,backgroundSize:"cover",backgroundPosition:"center",backgroundRepeat:"no-repeat"},"aria-label":f});return(0,r.jsxs)(N.Div,{...n,style:{...n.style,textAlign:"initial",backgroundColor:g,borderRadius:12,overflow:"hidden",display:"flex",flexDirection:"row",alignItems:"stretch",minHeight:200},editorProps:a(s),editorContext:l,children:[(0,r.jsx)("div",{style:{flex:"0 0 45%",maxWidth:"45%"},children:o?C:(0,r.jsx)("a",{href:u,target:j,rel:"_blank"===j?"noopener noreferrer":void 0,style:{display:"block",width:"100%",height:"100%",textDecoration:"none"},children:C})}),(0,r.jsxs)("div",{style:{flex:1,padding:"24px",display:"flex",flexDirection:"column",gap:12,justifyContent:"flex-start",minWidth:0},children:[w?(0,r.jsx)("span",{style:{alignSelf:"flex-start",padding:"4px 12px",borderRadius:999,backgroundColor:b,color:v,fontSize:12,fontWeight:600,whiteSpace:"nowrap"},children:m}):null,o?(0,r.jsx)("div",{style:{fontSize:18,fontWeight:700,lineHeight:1.4,color:x,display:"-webkit-box",WebkitLineClamp:2,WebkitBoxOrient:"vertical",overflow:"hidden"},children:f}):(0,r.jsx)(M,{isEdit:o,children:(0,r.jsx)("a",{href:u,target:j,rel:"_blank"===j?"noopener noreferrer":void 0,style:{fontSize:18,fontWeight:700,lineHeight:1.4,color:x,textDecoration:"none",display:"-webkit-box",WebkitLineClamp:2,WebkitBoxOrient:"vertical",overflow:"hidden"},children:f})}),h?(0,r.jsx)("p",{style:{fontSize:13,lineHeight:1.6,color:y,display:"-webkit-box",WebkitLineClamp:2,WebkitBoxOrient:"vertical",overflow:"hidden",margin:0},children:h}):null]})]})}}},tJ=null;function tG(e){if(e?.promoVideoUrl)return{kind:"player",src:e.promoVideoUrl};let{type:t,embedUrl:r}=ty(e?.promoVideoSrc);if(!r)return null;if("youtube"!==t)return{kind:"external",src:r};let i=new URL(r);return i.searchParams.set("enablejsapi","1"),{kind:"youtube",src:i.toString()}}function tY(e){let{video:t,title:n,style:o,onPlay:l,onEnded:a}=e,[s,d]=(0,i.useState)(null);return!function(e){let{iframe:t,enabled:r,onPlay:n,onEnded:o}=e,l=(0,i.useRef)(n),a=(0,i.useRef)(o);(0,i.useEffect)(()=>{l.current=n,a.current=o}),(0,i.useEffect)(()=>{if(!r||!t)return;let e=!1,i=!1;return(function(){if(tJ)return tJ;let e=window;return tJ=new Promise((t,r)=>{if(e.YT?.Player)return void t(e.YT);let i=!1,n=n=>{if(!i){if(i=!0,window.clearInterval(l),!n&&e.YT?.Player)return void t(e.YT);tJ=null,r(n??Error("YT namespace missing after API ready"))}},o=Date.now(),l=window.setInterval(()=>{e.YT?.Player?n():Date.now()-o>1e4&&n(Error("YouTube IFrame API did not become ready"))},250),a=e.onYouTubeIframeAPIReady;e.onYouTubeIframeAPIReady=()=>{a?.(),n()};let s=document.createElement("script");s.src="https://www.youtube.com/iframe_api",s.async=!0,s.onerror=()=>n(Error("Failed to load YouTube IFrame API")),document.head.appendChild(s)})})().then(r=>{e||new r.Player(t,{events:{onReady:()=>{i=!0},onStateChange:t=>{let{data:r,target:n}=t;if(e||!i)return;let o=1===r?l.current:0===r?a.current:void 0;o?.(n.getCurrentTime(),n.getDuration())}}})}).catch(()=>{}),()=>{e=!0}},[r,t])}({iframe:s,enabled:"youtube"===t.kind&&!!(l||a),onPlay:l,onEnded:a}),(0,r.jsx)("iframe",{ref:d,src:t.src,title:n,allow:"player"===t.kind?"autoplay; fullscreen; picture-in-picture; remote-playback; presentation; cast":void 0,allowFullScreen:!0,style:o})}function tZ(e){if(!e)return{};try{return JSON.parse(e)}catch{return{}}}
293let tK="course-tabs-change",tX=0;function tQ(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"intro",[t,r]=(0,i.useState)(e);return(0,i.useEffect)(()=>{function e(e){let t=e.detail;t&&r(t)}return window.addEventListener(tK,e),()=>window.removeEventListener(tK,e)},[]),[t,e=>{r(e),window.dispatchEvent(new CustomEvent(tK,{detail:e}))}]}let t0={intro:"課ç¨ç°¡ä»",curriculum:"ç« ç¯å®å
",lecturer:"éæ¼è¬å¸«",faq:"常è¦åé¡",preview:"課ç¨è©¦ç",inquiry:"課ååç",reviews:"ææ°è©å¹"},t1={intro:"custom:course_introduction",curriculum:"custom:course_content",lecturer:"custom:lecturers",faq:"custom:faq",preview:"custom:course_preview",inquiry:"custom:course_qa",reviews:"custom:course_reviews"};function t2(e,t){let r=t1[e],i=t0[e];if(!t)return i;let n=t(r);if(!n)return i;let o=r.includes(":")?r.slice(r.indexOf(":")+1):r;return n===r||n===o?i:n}let t5=["intro","curriculum","faq","inquiry"],t4=["lecturer","faq","preview","inquiry"],t8={default:{borderColor:"#334155",barBg:"#0f172a",activeTabText:"#fff",inactiveTabText:"#94a3b8",activeIndicator:"#1988FF",contentText:"#cbd5e1",mutedText:"#64748b",accordionBg:"rgba(30,41,59,0.5)",accordionBorder:"#334155",accordionTitle:"#e2e8f0",reviewCardBg:"#fff",reviewCardBorder:"#334155",reviewAuthorColor:"#1e293b",reviewBodyColor:"#475569",avatarBg:"#ede9fe",avatarText:"#7c3aed"},dark:{borderColor:"#333333",barBg:"#000",activeTabText:"#fff",inactiveTabText:"#fff",activeIndicator:"#1988FF",contentText:"#ffffff",mutedText:"#ffffff",accordionBg:"#0D0D0D",accordionBorder:"#333333",accordionTitle:"#ffffff",reviewCardBg:"#fff",reviewCardBorder:"#334155",reviewAuthorColor:"#1e293b",reviewBodyColor:"#475569",avatarBg:"#ede9fe",avatarText:"#7c3aed"},light:{borderColor:"#e2e8f0",barBg:"#ffffff",activeTabText:"#0f172a",inactiveTabText:"#94a3b8",activeIndicator:"#0d9488",contentText:"#475569",mutedText:"#94a3b8",accordionBg:"#f8fafc",accordionBorder:"#e2e8f0",accordionTitle:"#0f172a",reviewCardBg:"#fff",reviewCardBorder:"#e2e8f0",reviewAuthorColor:"#0f172a",reviewBodyColor:"#475569",avatarBg:"#ccfbf1",avatarText:"#0d9488"},spotlight:{borderColor:"rgba(152, 154, 154, 0.5)",barBg:"#000000",activeTabText:"#5585FA",inactiveTabText:"#ffffff",activeIndicator:"#5585FA",activeIndicatorHeight:4,tabFontFamily:"Arial, sans-serif",tabs:["intro","curriculum","lecturer","faq","preview","inquiry","reviews"],tabLabels:{intro:"課ç¨ä»ç´¹",curriculum:"課ç¨ç« ç¯",reviews:"ææ°è©å¹"},conditionalTabs:["inquiry","reviews"],barInnerMaxWidth:"1280px",barInnerPadding:"0 32px",contentText:"#ffffff",mutedText:"rgba(152, 154, 154, 0.8)",richTextSpaced:!0,singlePageScroll:!0,accordionBg:"#000000",accordionBorder:"rgba(152, 154, 154, 0.5)",accordionTitle:"#ffffff",reviewCardBg:"#232326",reviewCardBorder:"rgba(152, 154, 154, 0.5)",reviewAuthorColor:"#ffffff",reviewBodyColor:"#ffffff",avatarBg:"#5585FA",avatarText:"#ffffff",curriculum:{title:"課ç¨ç« ç¯",defaultOpen:!1,showOverallMeta:!1,showSectionMeta:!1,previewLabel:"å
費試ç",previewBadgeStyle:"filled",chevronPosition:"right",showIntroMedia:!0}}};function t6(e,t){return e?e=>e.preventDefault():t}function t3(e){let t=e=>String(e).padStart(2,"0"),r=Math.floor(e),i=Math.floor(r/3600),n=Math.floor(r%3600/60),o=r%60;return i>0?`${t(i)}:${t(n)}:${t(o)}`:`${t(n)}:${t(o)}`}function t7(e){let{vm:t,v:i,cls:n,isEdit:o,showLecturers:l=!0,onInstructorClick:a,onPromoVideoPlay:s,onPromoVideoEnded:d}=e,c=!!i.curriculum?.showIntroMedia,u=t.hero?.subtitle,p=c?tG(t.hero):null,f=t.hero?.videoAspectRatio?String(t.hero.videoAspectRatio).replace(":","/"):"16/9",h=c?t.hero?.description:t.hero?.description||t.hero?.subtitle,m=l?t.lecturers??[]:[],g=c&&(!!u||!!p);return(0,r.jsxs)("div",{children:[g&&(0,r.jsxs)("div",{style:{marginBottom:h||m.length>0?"32px":"0"},children:[u&&(0,r.jsx)("p",{style:{margin:p?"0 0 20px 0":"0",color:i.contentText,fontSize:"16px",lineHeight:1.7},children:u}),p&&(0,r.jsx)(tY,{video:p,title:t.hero?.name??"Course Intro Video",onPlay:o?void 0:s,onEnded:o?void 0:d,style:{width:"100%",aspectRatio:f,border:0,display:"block",borderRadius:"5px",backgroundColor:"#000000"}})]}),h?(0,r.jsx)("div",{className:`${n}-rich course-description`,style:{color:i.contentText,lineHeight:1.7,marginBottom:m.length>0?"40px":"0"},dangerouslySetInnerHTML:{__html:tH((0,Q.sanitizeHtml)(h,"extended"),{lazy:!0})}}):!g&&(0,r.jsx)("p",{style:{color:i.mutedText,marginBottom:m.length>0?"40px":"0"},children:"å°ç¡èª²ç¨ç°¡ä»ã"}),m.length>0&&(0,r.jsxs)("div",{children:[(0,r.jsx)("h3",{style:{marginBottom:"24px",fontSize:"18px",fontWeight:700,color:i.accordionTitle},children:"éæ¼è¬å¸«"}),m.map(e=>{let t=e.slug?`/@${e.slug}`:void 0,n=a&&(()=>a({id:e.id,slug:e.slug,name:e.name}
293)),l={textDecoration:"none",color:"inherit",cursor:o?"default":"pointer",pointerEvents:o?"none":"auto"},s=e.avatar?(0,r.jsx)("img",{src:I.utils?.imgProxyLoader?.({src:e.avatar,width:160})??e.avatar,alt:e.name,width:80,height:80,loading:"lazy",style:{width:"80px",height:"80px",borderRadius:"50%",objectFit:"cover",flexShrink:0}}):(0,r.jsx)("div",{style:{width:"80px",height:"80px",borderRadius:"50%",backgroundColor:i.avatarBg,display:"flex",alignItems:"center",justifyContent:"center",fontSize:"24px",fontWeight:700,color:i.avatarText,flexShrink:0},children:e.name?.charAt?.(0)?.toUpperCase()??"?"});return(0,r.jsxs)("div",{style:{display:"flex",gap:"20px",marginBottom:"32px"},children:[t?(0,r.jsx)("a",{href:o?void 0:t,onClick:t6(o,n),style:{...l,flexShrink:0,lineHeight:0},children:s}):s,(0,r.jsxs)("div",{style:{minWidth:0},children:[(0,r.jsx)("h4",{style:{margin:"0 0 6px 0",fontSize:"16px",fontWeight:600,color:i.accordionTitle},children:t?(0,r.jsx)("a",{href:o?void 0:t,onClick:t6(o,n),style:l,children:e.name}):e.name}),e.bio&&(0,r.jsx)("div",{className:"course-tabs-lecturer-bio",style:{fontSize:"14px",color:"#ffffff",lineHeight:1.7},dangerouslySetInnerHTML:{__html:tH((0,Q.sanitizeHtml)(e.bio,"extended"),{lazy:!0})}})]})]},e.id)})]})]})}function t9(e){let{vm:t,v:i,cls:n,isEdit:o,onTrialClick:l}=e,a=t.curriculum?.sections??[],s=t.curriculum?.totalLectures,d=t.curriculum?.totalHours,c=t.slug,u=i.curriculum??{},p=u.title??"ç« ç¯å®å ",f=u.defaultOpen??!0,h=u.showOverallMeta??!0,m=u.showSectionMeta??!0,g=u.previewLabel??"試é±",x="filled"===u.previewBadgeStyle,y="right"===u.chevronPosition,b=!!i.curriculum,v=()=>(0,r.jsx)("svg",{className:b?`${n}-section-chevron`:"curriculum-chevron",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:i.activeIndicator,strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",style:{flexShrink:0},children:(0,r.jsx)("path",{d:b?"m6 9 6 6 6-6":"m18 15-6-6-6 6"})});return(0,r.jsxs)("div",{children:[b&&(0,r.jsx)("style",{dangerouslySetInnerHTML:{__html:` 294 /* Variant opted into stateful chevron via curriculum config. */ 295 details[open] > summary > .${n}-section-chevron, 296 details[open] > summary > span > .${n}-section-chevron { transform: rotate(180deg); transition: transform 0.2s ease; } 297 `}}),(0,r.jsxs)("div",{style:{display:"flex",alignItems:"baseline",justifyContent:"space-between",gap:"12px",marginBottom:"24px",flexWrap:"wrap"},children:[(0,r.jsx)("h2",{className:`${n}-curriculum-title`,style:{color:i.accordionTitle},children:p}),h&&null!=s&&s>0&&(0,r.jsxs)("span",{style:{fontSize:"12px",color:i.mutedText},children:["å ± ",s," åå®å ",null!=d&&d>0&&` \xb7 ç¸½ææ¸ç´ ${d} å°æ`]})]}),0===a.length&&(0,r.jsx)("p",{style:{color:i.mutedText},children:"å°ç¡ç« ç¯å §å®¹ã"}),a.map(e=>{let t=e.lectures??[],n=(t??[]).reduce((e,t)=>e+(t.duration??0),0);return(0,r.jsxs)("details",{open:f,style:{marginBottom:"12px",border:`1px solid ${i.accordionBorder}`,borderRadius:"16px",background:i.accordionBg,overflow:"hidden"},children:[(0,r.jsxs)("summary",{style:{padding:"16px 20px",fontWeight:600,color:i.accordionTitle,cursor:"pointer",display:"flex",justifyContent:"space-between",alignItems:"center",gap:"12px",listStyle:"none"},children:[(0,r.jsxs)("span",{style:{display:"flex",alignItems:"center",gap:"12px",minWidth:0},children:[!y&&v(),(0,r.jsx)("span",{style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:e.title})]}),(0,r.jsxs)("span",{style:{fontSize:"12px",fontWeight:400,color:i.mutedText,marginLeft:"12px",flexShrink:0,display:"flex",alignItems:"center",gap:"16px"},children:[m&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("span",{children:["å ± ",t.length," åå®å "]}),n>0&&(0,r.jsx)("span",{children:t3(n)})]}),y&&v()]})]}),(0,r.jsx)("ul",{style:{borderTop:`1px solid ${i.accordionBorder}`,padding:"8px 20px",listStyle:"none",margin:0,background:"#000000"},children:t.map(e=>{let t=e.isManagerPreview?"管çå¡é 覽":e.isFree?g:null,n=l&&(()=>l({id:e.id,name:e.title,duration:e.duration})),a=x?{fontSize:"12px",fontWeight:600,padding:"4px 12px",borderRadius:"40px",background:"#ffffff",color:"#000000",border:"none"}:{fontSize:"12px",padding:"2px 10px",borderRadius:"6px",background:"transparent",color:i.activeIndicator,border:`1px solid ${i.activeIndicator}`};return(0,r.jsxs)("li",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"12px 0",fontSize:"14px",color:i.contentText,gap:"12px"},children:[(0,r.jsxs)("span",{style:{display:"flex",alignItems:"center",gap:"12px",minWidth:0},children:[(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24",fill:i.contentText,"aria-hidden":"true",style:{flexShrink:0},children:(0,r.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zM10 16.5v-9l6 4.5-6 4.5z"})}),(0,r.jsx)("span",{style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:e.title})]}),(0,r.jsxs)("span",{style:{display:"flex",alignItems:"center",gap:"12px",flexShrink:0},children:[e.duration>0&&(0,r.jsx)("span",{style:{fontSize:"12px",color:i.mutedText},children:t3(e.duration)}),t&&c&&(0,r.jsx)("a",{href:o?void 0:`/learning/${c}/${e.id}`,onClick:t6(o,n),style:{...a,textDecoration:"none",cursor:o?"default":"pointer",pointerEvents:o?"none":"auto",whiteSpace:"nowrap"},children:t})]})]},e.id)})})]},e.id)})]})}function re(e){let{vm:t,v:i,cls:n,isEdit:o,onInstructorClick:l}=e,a=t.lecturers??[];return 0===a.length?(0,r.jsx)("p",{style:{color:i.mutedText},children:"å°ç¡è¬å¸«è³è¨ã"}):(0,r.jsxs)("div",{children:[(0,r.jsx)("style",{dangerouslySetInnerHTML:{__html:` 298 /* Desktop (TEACH-20788): top-align the avatar with the name/title/bio column 299 instead of vertically centering it against a taller bio block. */ 300 .${n}-lect-row { align-items: flex-start; } 301 /* Mobile (figma TPLUS-898): stack centered â avatar on top, name + title 302 centered below, bio left-aligned underneath. Desktop keeps the 303 avatar-left / text-right row. */ 304 @media (max-width: 768px) { 305 .${n}-lect-row { flex-direction: column; align-items: center; gap: 16px; } 306 .${n}-lect-text { width: 100%; } 307 .${n}-lect-name, .${n}-lect-title { text-align: center; } 308 } 309 `}}),a.map(e=>{let t=e.slug?`/@${e.slug}`:void 0,a=l&&(()=>l({id:e.id,slug:e.slug,name:e.name})),[s,...d]=String(e.name??"").split("ï½"),c=d.join("ï½").trim(),u={textDecoration:"none",color:"inherit",curs
309or:o?"default":"pointer",pointerEvents:o?"none":"auto"},p=e.avatar?(0,r.jsx)("img",{src:I.utils?.imgProxyLoader?.({src:e.avatar,width:310})??e.avatar,alt:s,width:155,height:155,loading:"lazy",style:{width:"155px",height:"155px",borderRadius:"50%",objectFit:"cover",flexShrink:0}}):(0,r.jsx)("div",{style:{width:"155px",height:"155px",borderRadius:"50%",backgroundColor:i.avatarBg,display:"flex",alignItems:"center",justifyContent:"center",fontSize:"44px",fontWeight:700,color:i.avatarText,flexShrink:0},children:s?.charAt?.(0)?.toUpperCase()??"?"});return(0,r.jsxs)("div",{className:`${n}-lect-row`,style:{display:"flex",gap:"24px",marginBottom:"40px"},children:[t?(0,r.jsx)("a",{href:o?void 0:t,onClick:t6(o,a),style:{...u,flexShrink:0,lineHeight:0},children:p}):p,(0,r.jsxs)("div",{className:`${n}-lect-text`,style:{minWidth:0},children:[(0,r.jsx)("h3",{className:`${n}-lect-name`,style:{margin:c?"0 0 4px 0":"0 0 8px 0",fontSize:"20px",fontWeight:700,lineHeight:1.4,color:i.accordionTitle},children:t?(0,r.jsx)("a",{href:o?void 0:t,onClick:t6(o,a),style:u,children:s}):s}),c&&(0,r.jsx)("p",{className:`${n}-lect-title`,style:{margin:"0 0 12px 0",fontSize:"16px",fontWeight:400,color:i.contentText},children:c}),e.bio&&(0,r.jsx)("div",{className:"course-tabs-lecturer-bio",style:{fontSize:"14px",color:i.contentText,lineHeight:1.7},dangerouslySetInnerHTML:{__html:tH((0,Q.sanitizeHtml)(e.bio,"extended"),{lazy:!0})}})]})]},e.id)})]})}function rt(e){let{vm:t,v:i,cls:n,isEdit:o,hideTitle:l,onTrialClick:a}=e,s=t.curriculum?.sections??[],d=t.slug,c=s.flatMap(e=>(e.lectures??[]).filter(e=>e.isFree&&!e.isManagerPreview).map(t=>({...t,sectionTitle:e.title})));return 0===c.length?(0,r.jsx)("p",{style:{color:i.mutedText},children:"å°ç¡å
費試çå®å
ã"}):(0,r.jsxs)("div",{children:[!l&&(0,r.jsx)("h2",{className:`${n}-curriculum-title`,style:{color:i.accordionTitle,marginBottom:"24px"},children:"å
費試ç"}),(0,r.jsx)("ul",{style:{listStyle:"none",padding:0,margin:0,display:"flex",flexDirection:"column",gap:"12px"},children:c.map(e=>{let t=a&&(()=>a({id:e.id,name:e.title,duration:e.duration}));return(0,r.jsxs)("li",{style:{padding:"16px 20px",border:`1px solid ${i.accordionBorder}`,borderRadius:"8px",background:i.accordionBg,display:"flex",alignItems:"center",justifyContent:"space-between",gap:"12px"},children:[(0,r.jsxs)("span",{style:{display:"flex",alignItems:"center",gap:"12px",minWidth:0,color:i.contentText},children:[(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24",fill:i.activeIndicator,"aria-hidden":"true",style:{flexShrink:0},children:(0,r.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zM10 16.5v-9l6 4.5-6 4.5z"})}),(0,r.jsx)("span",{style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:e.title})]}),(0,r.jsxs)("span",{style:{display:"flex",alignItems:"center",gap:"12px",flexShrink:0},children:[e.duration>0&&(0,r.jsx)("span",{style:{fontSize:"12px",color:i.mutedText},children:t3(e.duration)}),d&&(0,r.jsx)("a",{href:o?void 0:`/learning/${d}/${e.id}`,onClick:t6(o,t),style:{fontSize:"12px",padding:"4px 12px",borderRadius:"6px",border:`1px solid ${i.activeIndicator}`,color:i.activeIndicator,background:"transparent",textDecoration:"none",cursor:o?"default":"pointer",pointerEvents:o?"none":"auto",whiteSpace:"nowrap"},children:"ç«å³è©¦ç"})]})]},e.id)})})]})}function rr(e){let{vm:t,v:i,cls:n}=e,o=t.faqs??[];return 0===o.length?(0,r.jsx)("p",{style:{color:i.mutedText},children:"å°ç¡å¸¸è¦åé¡ã"}):(0,r.jsx)("div",{children:o.map(e=>(0,r.jsxs)("details",{className:`${n}-faq-item`,children:[(0,r.jsxs)("summary",{children:[(0,r.jsx)("span",{children:e.question}),(0,r.jsx)("svg",{className:`${n}-faq-chevron`,xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:i.activeIndicator,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:(0,r.jsx)("path",{d:"m6 9 6 6 6-6"})})]}),(0,r.jsx)("div",{className:`${n}-faq-answer`,dangerouslySetInnerHTML:{__html:tH((0,Q.sanitizeHtml)(e.answer,"extended"),{lazy:!0})}})]},e.id))})}function ri(e){let{v:t,slot:i,cls:n}=e;return i?(0,r.jsx)("div",{className:`${n}-inquiry`,children:i}):(0,r.jsx)("p",{style:{color:t.mutedText},children:"å°ç¡çè¨ã"})}function rn(e){let{v:t,slot:i,cls:n}=e;return i?(0,r.jsx)("div",{className:`${n}-reviews`,children:i}):null}let ro="#989A9A";function rl(e){return e?.compareAtPrice!=null&&e.compareAtPrice>e.amount}function ra(e){let[t,r]=(0,i.useState)(()=>1e3*e>Date.now());return(0,i.useEffect)(()=>{let t;if(!e)return;let i=()=>{let n=1e3*e-Date.now();n<=0?r(!1):(r(!0),t=setTimeout(i,Math.min(n,2e9)))};return i(),()=>clearTimeout(t)},[e]),t}let rs={default:{containerBg:"#0f172a",overlayGradient:"linear-gradient(to right, rgba(15,23,42,0.9), rgba(15,23,42,0.7), rgba(15,23,42,0.3))",labelColor:"#2dd4bf",titleColor:"#ffffff",priceColor:"#ffffff",ctaBg:"#1988FF",ctaText:"#ffffff"},"authority-dark":{containerBg:"#000",overlayGradient:"linear-gradient(to right, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.6) 35%, rgba(0,0,0,0) 65%)",overlayGradientMobile:"linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.6) 60%, rgba(0,0,0,0.9) 100%)",labelColor:"#ffffff",titleColor:"#ffffff",priceColor:"#ffffff",ctaBg:"#1988FF",ctaText:"#ffffff",hideCtaOnMobile:!0,showSubtitle:!0},"story-light":{containerBg:"#f8fafc",overlayGradient:"linear-gradient(to right, rgba(248,250,252,0.95), rgba(248,250,252,0.7), rgba(248,250,252,0.2))",labelColor:"#0d9488",titleColor:"#0f172a",priceColor:"#0f172a",ctaBg:"#0d9488",ctaText:"#ffffff"},spotlight:{containerBg:"#000000",overlayGradient:"transparent",labelColor:"#000000",titleColor:"#ffffff",priceColor:"#ffffff",ctaBg:"#E54228",ctaText:"#ffffff",layout:"split",showCountdown:!0,hidePriceBlock:!0,labelPillBg:"#ffffff",countdownDigitBg:"#000000",countdownDigitColor:"#E54228"}};function rd(e){let{cls:t,v:n,hero:o,commerce:l,firstPlan:a,firstPlanSoldOut:s,studentsCount:d,rating:c,ctaBg:u,priceColor:p,preOrderInfo:f,styleParams:h,editorProps:m,editorContext:g,getFilteredEditorProps:x,t:y,actions:b}=e,v=o.image?I.utils?.imageProxySets?.(o.image,{width:1200})??{src:o.image}:null,w=Array.isArray(o?.categories)?o.categories:[],j=function(e){let[t,r]=(0,i.useState)(null);return(0,i.useEffect)(()=>
309{if(!e)return;r(Date.now());let t=setInterval(()=>r(Date.now()),1e3);return()=>clearInterval(t)},[e]),(0,i.useMemo)(()=>{if(null==t||!e)return null;let r=1e3*e-t;if(r<=0)return{d:0,h:0,m:0,s:0};let i=Math.floor(r/1e3);return{d:Math.floor(i/86400),h:Math.floor(i%86400/3600),m:Math.floor(i%3600/60),s:i%60}},[e,t])}(f?.endedAt??0),C=ra(f?.endedAt??0),k=!!(n.showCountdown&&C),S=!!g?.isEdit,T=e=>null!=d&&d>0?(0,r.jsxs)("div",{className:`${t}-split-meta ${e}`,children:[(0,r.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",children:(0,r.jsx)("path",{fillRule:"evenodd",d:"M7.5 6a4.5 4.5 0 1 1 9 0 4.5 4.5 0 0 1-9 0ZM3.751 20.105a8.25 8.25 0 0 1 16.498 0 .75.75 0 0 1-.437.695A18.683 18.683 0 0 1 12 22.5c-2.786 0-5.433-.608-7.812-1.7a.75.75 0 0 1-.437-.695Z",clipRule:"evenodd"})}),(0,r.jsx)("span",{children:`å·²æ ${d.toLocaleString()} åå¸å¡`})]}):null;return(0,r.jsxs)(N.Div,{...h,style:{position:"relative",width:"100%",display:"block",alignItems:"unset",justifyContent:"unset",textAlign:"left",padding:"0",backgroundColor:n.containerBg},editorProps:x(m),editorContext:g,children:[(0,r.jsx)("style",{dangerouslySetInnerHTML:{__html:` 310 @import url('https://fonts.googleapis.com/css2?family=Anton&display=swap'); 311 .${t}-split-inner { padding: 64px 32px 24px; max-width: 1280px; margin: 0 auto; box-sizing: border-box; } 312 .${t}-split-grid { display: flex; gap: 48px; align-items: flex-start; } 313 .${t}-split-image { flex: 0 0 600px; width: 600px; max-width: 100%; border-radius: 5px; overflow: hidden; aspect-ratio: 600 / 338; background: #000000; } 314 .${t}-split-image img { width: 100%; height: 100%; object-fit: cover; display: block; } 315 /* margin-top nudges the text column down to align tags with the cover's top edge â desktop only (reset in the mobile @media below). */ 316 .${t}-split-text { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 20px; margin-top: 3px; } 317 .${t}-split-title { font-family: 'Noto Sans CJK TC', 'Noto Sans TC', sans-serif; font-size: 36px; font-weight: 500; line-height: 1.25; color: ${n.titleColor}; margin: 0; } 318 .${t}-split-label { display: inline-block; align-self: flex-start; padding: 2px 12px; border-radius: 40px; font-size: 14px; font-weight: 600; background: ${n.labelPillBg??"transparent"}; color: ${n.labelColor}; } 319 .${t}-split-toprow { display: flex; align-items: center; justify-content: space-between; gap: 12px; } 320 .${t}-split-tags { display: flex; flex-wrap: wrap; gap: 8px; } 321 .${t}-split-tag { display: inline-block; padding: 1px 10px; border-radius: 40px; font-size: 12px; font-weight: 600; background: #5585FA; color: #ffffff; } 322 .${t}-split-meta { display: flex; align-items: center; gap: 8px; color: ${n.titleColor}; font-size: 14px; opacity: 0.85; } 323 /* Students count sits below the title on desktop; the tag-row copy is mobile-only. */ 324 .${t}-split-meta-top { display: none; flex-shrink: 0; } 325 /* Rating summary (TEACH-20791): score + stars + a grey review-count link, 326 underlined on hover only (not persistently). Rating's emptyStarColor 327 prop is hardcoded to '#ddd' by @kaikhq/components, so recolor via the 328 label elements StarRatingComponent renders â !important on the 329 class wins over that inline color style regardless of specificity. */ 330 .${t}-split-rating { display: flex; align-items: center; gap: 8px; } 331 .${t}-split-rating-score { font-size: 20px; font-weight: 700; line-height: 1; color: ${n.titleColor}; } 332 /* The star glyphs are rendered inside floated <label> elements (StarRatingComponent), 333 and floats align to the top of their line box rather than participating in 334 line-height centering â so the default ~1.5 line-height here left the icons sitting 335 a couple px above center relative to the score/count text. line-height: 1 collapses 336 the wrapper's line box down to the icons' own height, which align-items: center on 337 the row above can then center exactly like a normal inline element (TEACH-20790 fix 1). */ 338 .${t}-split-rating-stars { display: flex; align-items: center; line-height: 1; } 339 .${t}-split-rating-stars .dv-star-rating-full-star { color: #E54228 !important; } 340 .${t}-split-rating-stars .dv-star-rating-empty-star { color: ${ro} !important; } 341 .${t}-split-rating-count { background: none; border: none; padding: 0; margin: 0; font: inherit; font-size: 13px; color: ${ro}; text-decoration: none; cursor: pointer; } 342 .${t}-split-rating-count:hover { text-decoration: underline; } 343 .${t}-split-countdown-row { display: flex; gap: 8px; align-items: center; } 344 .${t}-split-countdown-cell { display: flex; flex-direction: column; align-items: center; gap: 4px; } 345 .${t}-split-countdown-digit { min-width: 56px; padding: 8px 4px; background: ${n.countdownDigitBg??"#000000"}; color: ${n.countdownDigitColor??"#E54228"}; border: 1px solid ${n.countdownDigitColor??"#E54228"}; border-radius: 8px; font-family: 'Anton', sans-serif; font-size: 32px; font-weight: 700; line-height: 1; text-align: center; font-variant-numeric: tabular-nums; } 346 .${t}-split-countdown-unit { font-size: 12px; color: ${n.titleColor}; opacity: 0.7; } 347 @media (max-width: 768px) { 348 .${t}-split-inner { padding: 32px 16px; } 349 .${t}-split-grid { flex-direction: column; gap: 24px; } 350 .${t}-split-text { margin-top: 0; } 351 /* Reset the row-layout flex so the image isn't height-collapsed to 0
352 in column direction (flex-basis:0 on the cross-turned main axis), 353 which previously hid the cover on mobile. Keep the same 600:338 354 ratio and scale proportionally to the full column width. */ 355 .${t}-split-image { flex: none; width: 100%; max-width: none; aspect-ratio: 600 / 338; } 356 /* Show the whole cover on mobile (no center-crop); letterbox fills with 357 the container's black bg, which blends into the spotlight theme. */ 358 .${t}-split-image img { object-fit: contain; } 359 /* Mobile: students count joins the tag row (right-aligned, top-aligned); hide the below-title copy. */ 360 .${t}-split-toprow { align-items: flex-start; } 361 .${t}-split-meta-top { display: flex; } 362 .${t}-split-meta-below { display: none; } 363 .${t}-split-title { font-size: 26px; } 364 .${t}-split-countdown-digit { min-width: 42px; font-size: 30px; font-weight: 400; padding: 6px 4px; } 365 } 366 `}}),(0,r.jsx)("div",{className:`${t}-split-inner`,children:(0,r.jsxs)("div",{className:`${t}-split-grid`,children:[(0,r.jsx)("div",{className:`${t}-split-image`,children:v&&(0,r.jsx)("img",{...v,alt:o.name??"",sizes:"(max-width: 768px) 100vw, 50vw",fetchPriority:"high"})}),(0,r.jsxs)("div",{className:`${t}-split-text`,children:[(w.length>0||null!=d&&d>0)&&(0,r.jsxs)("div",{className:`${t}-split-toprow`,children:[w.length>0&&(0,r.jsx)("div",{className:`${t}-split-tags`,children:w.map(e=>(0,r.jsx)("span",{className:`${t}-split-tag`,children:e.name},e.id))}),T(`${t}-split-meta-top`)]}),(0,r.jsx)("h1",{className:`${t}-split-title`,children:o.name}),c&&(0,r.jsxs)("div",{className:`${t}-split-rating`,children:[(0,r.jsx)("span",{className:`${t}-split-rating-score`,children:c.average.toFixed(1)}),(0,r.jsx)("span",{className:`${t}-split-rating-stars`,children:(0,r.jsx)(tr.Rating,{value:c.average,isEditing:!1,fontSize:"sm"})}),(0,r.jsx)("button",{type:"button",className:`${t}-split-rating-count`,onClick:()=>{S||function(e){if("u"<typeof document)return;let t=document.getElementById(`course-tabs-section-${e}`);if(!t)return;window.dispatchEvent(new CustomEvent(tK,{detail:e})),tX=Date.now()+700;let r=document.querySelector("[data-course-tabs-bar]"),i=r?.getBoundingClientRect().height??0,n=64*(window.innerWidth<=768),o=t.getBoundingClientRect().top+window.scrollY-(i+n);window.scrollTo({top:o,behavior:"smooth"})}("reviews")},children:y?.("course:unit_comments",{count:c.count})??`${c.count} åè©è«`})]}),T(`${t}-split-meta-below`),k&&(0,r.jsxs)("div",{children:[(0,r.jsxs)("div",{className:`${t}-split-meta`,style:{marginBottom:"10px"},children:[(0,r.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,r.jsx)("circle",{cx:"12",cy:"12",r:"10"}),(0,r.jsx)("polyline",{points:"12 6 12 12 16 14"})]}),(0,r.jsx)("span",{children:"éæåªæ 忏"})]}),(0,r.jsx)("div",{className:`${t}-split-countdown-row`,suppressHydrationWarning:!0,children:["d","h","m","s"].map((e,i)=>(0,r.jsxs)("div",{className:`${t}-split-countdown-cell`,children:[(0,r.jsx)("span",{className:`${t}-split-countdown-digit`,children:null==j?"--":String(j[e]).padStart(2,"0")}),(0,r.jsx)("span",{className:`${t}-split-countdown-unit`,children:["天","æ","å","ç§"][i]})]},e))})]}),!n.hidePriceBlock&&a&&!l.isPurchased&&(0,r.jsxs)("div",{style:{display:"flex",alignItems:"stretch",gap:"16px",flexWrap:"wrap",marginTop:"4px"},children:[(0,r.jsxs)("div",{style:{display:"flex",flexDirection:"column",justifyContent:rl(a)?"space-between":"center",gap:"4px"},children:[(0,r.jsxs)("span",{style:{fontSize:"24px",fontWeight:700,color:p},children:[a.currencySymbol??"NT$",a.amount?.toLocaleString?.()??a.amount]}),rl(a)&&(0,r.jsxs)("span",{style:{fontSize:"14px",color:"rgba(255,255,255,0.7)",textDecoration:"line-through"},children:[a.currencySymbol??"NT$",a.compareAtPrice.toLocaleString?.()??a.compareAtPrice]})]}),(0,r.jsx)("button",{type:"button",className:`${t}-cta`,disabled:s,onClick:()=>{s||b?.onPlanSelect?.({plan:{id:a.id,name:a.name,amount:a.amount,currencySymbol:a.currencySymbol,currency:a.currency,slug:a.id,__typename:"CurriculumPlan"}})},style:{padding:"12px 28px",fontSize:"15px",fontWeight:600,color:n.ctaText,backgroundColor:u,border:"none",borderRadius:"6px",cursor:"pointer"},children:s?y?.("general:stop_selling")??"å·²åæ¢è²©å®":y?.("general:buy_now")??"ç«å³è³¼è²·"})]})]})]})})]})}let rc={default:{cardBg:"#1e293b",cardBorder:"#334155",labelColor:"#e2e8f0",metaColor:"#94a3b8"},dark:{cardBg:"#1e293b",cardBorder:"#334155",labelColor:"#e2e8f0",metaColor:"#94a3b8"},light:{cardBg:"#ffffff",cardBorder:"#e2e8f0",labelColor:"#0f172a",metaColor:"#64748b"},spotlight:{cardBg:"#000000",cardBorder:"rgba(152, 154, 154, 0.5)",labelColor:"#ffffff",metaColor:"#94a3b8"}},ru={default:{headingColor:"#e2e8f0",nameColor:"#e2e8f0",bioColor:"#ffffff",avatarFallbackBg:"#fb923c",avatarFallbackText:"#fff"},dark:{headingColor:"#e2e8f0",nameColor:"#e2e8f0",bioColor:"#ffffff",avatarFallbackBg:"#fb923c",avatarFallbackText:"#fff"},light:{headingColor:"#0f172a",nameColor:"#0f172a",bioColor:"#475569",avatarFallbackBg:"#0d9488",avatarFallbackText:"#fff"}
366,spotlight:{headingColor:"#ffffff",nameColor:"#ffffff",bioColor:"#cbd5e1",avatarFallbackBg:"#2dd4bf",avatarFallbackText:"#0a0e1a"}};function rp(e,t){return e?e=>e.preventDefault():t}let rf={default:{containerBg:"#000",borderRadius:"8px"},dark:{containerBg:"#000",borderRadius:"8px"},light:{containerBg:"#e2e8f0",borderRadius:"12px"},spotlight:{containerBg:"#000000",borderRadius:"5px",videoOnly:!0,introTabOnly:!0}};function rh(e){return e?.compareAtPrice!=null&&e.compareAtPrice>e.amount}function rm(e){let[t,r]=(0,i.useState)(()=>1e3*e>Date.now());return(0,i.useEffect)(()=>{let t;if(!e)return;let i=()=>{let n=1e3*e-Date.now();n<=0?r(!1):(r(!0),t=setTimeout(i,Math.min(n,2e9)))};return i(),()=>clearTimeout(t)},[e]),t}function rg(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{id:e.id,name:[t.name,e.name].filter(Boolean).join(" - ")||"Plan",coverPhoto:e.coverPhoto||t.image,amount:e.amount??0,currencySymbol:e.currencySymbol??"NT$",currency:e.currency??"TWD",slug:e.id,__typename:"CurriculumPlan"}}let rx={cardBg:"transparent",cardBorder:"#333333",titleColor:"#e2e8f0",priceColor:"#fff",metaColor:"#ffffff",ctaBg:"#1988FF",ctaText:"#fff",purchasedColor:"#2dd4bf",stickyBg:"rgba(0, 0, 0, 0.92)"},ry={default:rx,dark:rx,light:{cardBg:"#ffffff",cardBorder:"#e2e8f0",titleColor:"#0f172a",priceColor:"#0f172a",metaColor:"#64748b",ctaBg:"#0d9488",ctaText:"#fff",purchasedColor:"#0d9488",stickyBg:"rgba(255, 255, 255, 0.96)"},spotlight:{cardBg:"#000000",cardBorder:"rgba(152, 154, 154, 0.5)",titleColor:"#ffffff",priceColor:"#E54228",metaColor:"#cbd5e1",ctaBg:"#E54228",ctaText:"#ffffff",purchasedColor:"#5585fa",stickyBg:"rgba(0, 0, 0, 0.95)",layout:"rich-card",accentColor:"#E54228",bodyColor:"#ffffff",cartButtonBorder:"#ffffff",cartButtonIconColor:"#ffffff",highlightCtaBg:"#E54228"}};function rb(e){let{plan:t,hero:n,v:o,ctaBg:l,isSoldOut:a,isFree:s,preOrderInfo:d,t:c,actions:u}=e,p=t.currencySymbol??"NT$",f=rg(t,n),h=t.name||n.name,m=t.description||n.subtitle,g=o.accentColor??o.priceColor,x=o.bodyColor??o.titleColor,y=("pre_order"===t.planType?t.endedAt:void 0)??d?.endedAt??0,b=function(e){let[t,r]=(0,i.useState)(null);return(0,i.useEffect)(()=>{if(!e)return;r(Date.now());let t=setInterval(()=>r(Date.now()),1e3);return()=>clearInterval(t)},[e]),(0,i.useMemo)(()=>{if(null==t||!e)return null;let r=1e3*e-t;if(r<=0)return null;let i=Math.floor(r/1e3),n=Math.floor(i/86400),o=Math.floor(i%86400/3600),l=Math.floor(i%3600/60),a=e=>String(e).padStart(2,"0");return`${n}天 ${a(o)}:${a(l)}:${a(i%60)}`},[e,t])}(y),v=rm(y),w=rh(t),j=o.cartButtonBorder??o.cardBorder,C=o.cartButtonIconColor??o.titleColor;return(0,r.jsxs)("div",{style:{borderRadius:"5px",border:`1px solid ${o.cardBorder}`,backgroundColor:o.cardBg,overflow:"hidden",padding:"16px",display:"flex",flexDirection:"column",gap:"14px"},children:[t.coverPhoto&&(0,r.jsx)("img",{...I.utils.imageProxySets(t.coverPhoto,{width:640})??{src:t.coverPhoto},sizes:"(max-width: 768px) 100vw, 33vw",alt:t.name??"",style:{display:"block",width:"100%",aspectRatio:"16 / 9",objectFit:"cover",backgroundColor:"#000000",borderRadius:"5px"}}),h&&(0,r.jsx)("h3",{style:{margin:0,fontFamily:"'Noto Sans CJK TC', 'Noto Sans TC', sans-serif",fontSize:"18px",fontWeight:700,lineHeight:1.5,color:o.titleColor},children:h}),v&&(0,r.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"8px",color:x,fontSize:"14px"},children:[(0,r.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,r.jsx)("circle",{cx:"12",cy:"13",r:"8"}),(0,r.jsx)("path",{d:"M12 9v4l2 2"}),(0,r.jsx)("path",{d:"M5 3 2 6"}),(0,r.jsx)("path",{d:"m22 6-3-3"})]}),(0,r.jsx)("span",{children:"éæåªæ 忏"}),(0,r.jsx)("span",{style:{color:g,fontWeight:600,fontVariantNumeric:"tabular-nums"},suppressHydrationWarning:!0,children:b??"--"})]}),s?(0,r.jsx)("p",{style:{margin:0,fontFamily:"Arial, sans-serif",fontSize:"32px",fontWeight:700,lineHeight:1,color:g},children:c?.("general:free")??"å
è²»"}):(0,r.jsxs)("div",{style:{display:"flex",alignItems:"baseline",gap:"12px",flexWrap:"wrap"},children:[(0,r.jsxs)("span",{style:{fontFamily:"Arial, sans-serif",fontSize:"32px",fontWeight:700,lineHeight:1,color:g,letterSpacing:"0.01em"}
366,children:[p,t.amount?.toLocaleString?.()??t.amount]}),w&&(0,r.jsxs)("span",{style:{fontSize:"16px",color:o.metaColor,textDecoration:"line-through"},children:[p,t.compareAtPrice.toLocaleString?.()??t.compareAtPrice]})]}),m&&(0,r.jsx)("div",{style:{color:x,fontSize:"14px",lineHeight:1.7,whiteSpace:"break-spaces"},dangerouslySetInnerHTML:{__html:tH((0,Q.sanitizeHtml)(m,"extended"))}}),(0,r.jsxs)("div",{style:{display:"flex",gap:"8px",marginTop:"4px"},children:[(0,r.jsx)("button",{type:"button",disabled:a,onClick:()=>{a||u?.onPlanSelect?.({plan:{...f,recurring:"subscription"===t.planType}})},style:{flex:"1 1 auto",padding:"14px 16px",fontSize:"16px",fontWeight:700,color:o.ctaText,backgroundColor:l,border:"none",borderRadius:"5px",cursor:a?"not-allowed":"pointer",textAlign:"center"},children:a?c?.("general:stop_selling")??"å·²åæ¢è²©å®":c?.("general:buy_now")??"ç«å³è³¼è²·"}),!s&&u?.onAddToCart&&(0,r.jsx)("button",{type:"button",disabled:a,"aria-label":c?.("general:add_to_cart")??"æ·»å è³è³¼ç©è»",onClick:()=>{a||u?.onAddToCart?.({plan:{...f,compareAtPrice:t.compareAtPrice,recurring:"subscription"===t.planType}})},style:{flex:"0 0 52px",width:"52px",height:"52px",padding:0,color:C,backgroundColor:"transparent",border:`1px solid ${j}`,borderRadius:"5px",cursor:a?"not-allowed":"pointer",display:"inline-flex",alignItems:"center",justifyContent:"center"},children:(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"22",height:"22",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",children:(0,r.jsx)("path",{d:"M2.25 2.25a.75.75 0 0 0 0 1.5h1.386c.17 0 .318.114.362.278l2.558 9.592a3.752 3.752 0 0 0-2.806 3.63c0 .414.336.75.75.75h15.75a.75.75 0 0 0 0-1.5H5.378A2.25 2.25 0 0 1 7.5 15h11.218a.75.75 0 0 0 .674-.421 60.358 60.358 0 0 0 2.96-7.228.75.75 0 0 0-.525-.965A60.864 60.864 0 0 0 5.68 4.509l-.232-.867A1.875 1.875 0 0 0 3.636 2.25H2.25ZM3.75 20.25a1.5 1.5 0 1 1 3 0 1.5 1.5 0 0 1-3 0ZM16.5 20.25a1.5 1.5 0 1 1 3 0 1.5 1.5 0 0 1-3 0Z"})})})]})]})}let rv=new Set(["CurriculumPlan","MembershipPlan","DigitalProduct"]),rw={default:{headingColor:"#1a202c",cardBg:"#ffffff",cardBorder:"#e2e8f0",cardRadius:"6px",typeColor:"#3182ce",titleColor:"#1a202c",descColor:"#64748b",priceColor:"#4a5568",placeholderBg:"#f7fafc",ctaBg:"#1988FF",ctaText:"#ffffff",cartBorder:"#e2e8f0",cartIconColor:"#1a202c"},spotlight:{headingColor:"#ffffff",cardBg:"#000000",cardBorder:"rgba(152, 154, 154, 0.5)",cardRadius:"5px",typeColor:"#cbd5e1",titleColor:"#ffffff",descColor:"#cbd5e1",priceColor:"#E54228",placeholderBg:"#111111",ctaBg:"#E54228",ctaText:"#ffffff",cartBorder:"#ffffff",cartIconColor:"#ffffff"}},rj="ç¡éå¶",rC={default:{bg:"transparent",progressFill:"#e07b28",progressTrack:"#2a2a2a",statLabel:"#ffffff",statLabelBg:"#1988FF",statValue:"#ffffff"},"authority-dark":{bg:"#0D0D0D",progressFill:"#e07b28",progressTrack:"#2a2a2a",statLabel:"#ffffff",statLabelBg:"#1988FF",statValue:"#ffffff",renderWhenOpenDate:!0},spotlight:{bg:"transparent",progressFill:"#e07b28",progressTrack:"#1a1a1a",statLabel:"#94a3b8",statLabelBg:"transparent",statValue:"#ffffff",alwaysRender:!0,renderWhenOpenDate:!0,layout:"icon-inline",title:"課ç¨è³è¨",titleColor:"#ffffff",iconColor:"#5585FA",inlineLabelColor:"#989A9A",containerPadding:"24px 32px 32px",compactStats:!0}};function rk(e){try{return new Date(1e3*e).toLocaleDateString("zh-TW",{year:"numeric",month:"numeric",day:"numeric",timeZone:"Asia/Taipei"})}catch{return"-"}}function rS(e){let[t,r,i]=e.split("-").map(Number);return t&&r&&i?`${t}/${r}/${i}`:e}function rT(e){try{return new Date(1e3*e).toLocaleString("zh-TW",{year:"numeric",month:"numeric",day:"numeric",hour:"2-digit",minute:"2-digit",hour12:!1,timeZone:"Asia/Taipei"})}catch{return"-"}}function r$(e){let{stats:t,v:i,cls:n}=e,o=i.iconColor??i.statValue,l=i.inlineLabelColor??i.statLabel,a={date:(0,r.jsxs)("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:o,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,r.jsx)("rect",{x:"3",y:"4",width:"18",height:"18",rx:"2",ry:"2"}),(0,r.jsx)("line",{x1:"16",y1:"2",x2:"16",y2:"6"}),(0,r.jsx)("line",{x1:"8",y1:"2",x2:"8",y2:"6"}),(0,r.jsx)("line",{x1:"3",y1:"10",x2:"21",y2:"10"})]},"cal"),lectures:(0,r.jsxs)("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:o,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,r.jsx)("path",{d:"M14 3v4a1 1 0 0 0 1 1h4"}),(0,r.jsx)("path",{d:"M17 21H7a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h7l5 5v11a2 2 0 0 1-2 2z"}),(0,r.jsx)("line",{x1:"9",y1:"13",x2:"15",y2:"13"}),(0,r.jsx)("line",{x1:"9",y1:"17",x2:"15",y2:"17"})]},"lectures"),duration:(0,r.jsxs)("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:o,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,r.jsx)("circle",{cx:"12",cy:"12",r:"10"}),(0,r.jsx)("polyline",{points:"12 6 12 12 16 14"})]},"duration"),students:(0,r.jsxs)("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:o,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,r.jsx)("path",{d:"M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2"}),(0,r.jsx)("circle",{cx:"12",cy:"7",r:"4"})]},"students"),watch:(0,r.jsxs)("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:o,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,r.jsx)("path",{d:"M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7z"}),(0,r.jsx)("circle",{cx:"12",cy:"12",r:"3"})]},"watch")};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("style",{dangerouslySetInnerHTML:{__html:` 367 /* 3-col grid, capped to ~50% of container width â figma puts the stats under 368 the hero image (left column) rather than spread across the full row. 369 Spotlight emits 3 compact stats (one row); a full 5-stat set wraps 3 + 2. */ 370 .${n}-inline-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 32px; max-width: calc(50% - 24px); } 371 .${n}-inline-row { display: flex; align-items: center; gap: 8px; font-size: 14px; min-width: 0; } 372 .${n}-inline-label { color: ${l}; flex-shrink: 0; } 373 .${n}-inline-value { color: ${i.statValue}; font-weight: 600; margin-left: 4px; } 374 @media (max-width: 1024px) { 375 .${n}-inline-grid { max-width: none; } 376 } 377 @media (max-width: 640px) { 378 .${n}-inline-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; } 379 } 380 `}}),(0,r.jsx)("div",{className:`${n}-inline-grid`,children:t.map(e=>(0,r.jsxs)("div",{className:`${n}-inline-row`,children:[a[e.icon],(0,r.jsx)("span",{className:`${n}-inline-label`,children:e.label}),(0,r.jsx)("span",{className:`${n}-inline-value`,children:e.value})]},e.label))})]})}let r_={"teachify.pageHero":e=>{let{componentData:t,params:n,styleParams:o,editorContext:l,getFilteredEditorProps:a,t:s,actions:d}=e;return function(e){let{editorProps:c}=e,u=t??{},p=u.hero??{},f=u.commerce??{},h=u.preOrderInfo,m=f.plans?.[0],{variant:g="default"}=tZ(n),x=rs[g]??rs.default,y=(0,i.useId)(),b=`hero-${y.replace(/:/g,"")}`,v=p.image?I.utils?.imageProxySets?.(p.image,{width:1920})??{src:p.image}:null,w=p.mobileImage?I.utils?.imageProxySets?.(p.mobileImage,{width:828})??{src:p.mobileImage}:null,j=ra(h?.endedAt??0),C=rl(m)||j?"#e07b28":null,k=C??x.ctaBg,S=C??x.priceColor,T=m?.remainingItemsCount===0;return"split"===x.layout?(0,r.jsx)(rd,{cls:b,v:x,hero:p,commerce:f,firstPlan:m,firstPlanSoldOut:T,studentsCount:u.socialProof?.studentsCount,rating:u.isRatingActive?u.socialProof?.rating:void 0,ctaBg:k,priceColor:S,preOrderInfo:h,styleParams:o,editorProps:c,editorContext:l,getFilteredEditorProps:a,t:s,actions:d}):(0,r.jsxs)(N.Div,{...o,style:{position:"relative",width:"100%",overflow:"hidden",display:"block",alignItems:"unset",justifyContent:"unset",textAlign:"left",padding:"0",backgroundColor:x.containerBg},editorProps:a(c),editorContext:l,children:[(0,r.jsx)("style",{dangerouslySetInnerHTML:{__html:` 381 .${b}-inner { padding: 80px 32px; height: 700px; } 382 .${b}-title { font-size: 40px; } 383 .${b}-subtitle { font-size: 20px; } 384 .${b}-price { font-size: 24px; } 385 .${b}-overlay { background: ${x.overlayGradient}; } 386 @media (max-width: 768px) { 387 /* Mobile keeps the 700px tall hero, with the text block dropped to the bottom */ 388 .${b}-inner { padding: 48px 20px; height: 700px; align-items: flex-end !important; } 389 .${b}-title { font-size: 28px; } 390 .${b}-subtitle { font-size: 16px; } 391 .${b}-price { font-size: 20px; } 392 .${b}-overlay { background: ${x.overlayGradientMobile??x.overlayGradient}; } 393 ${x.hideCtaOnMobile?` 394 /* Variant ships with a sticky bottom buy bar; hide the in-hero CTA on mobile. */ 395 .${b}-cta { display: none; } 396 `:""} 397 } 398 `}}),v&&(0,r.jsxs)("picture",{children:[w&&(0,r.jsx)("source",{media:"(max-width: 768px)",srcSet:"srcSet"in w&&w.srcSet||w.src}),(0,r.jsx)("img",{...v,sizes:"100vw",alt:"",fetchPriority:"high",style:{position:"absolute",inset:0,width:"100%",height:"100%",objectFit:"cover",objectPosition:"center",display:"block"}})]}),(0,r.jsx)("div",{className:`${b}-overlay`,style:{position:"absolute",inset:0}}),(0,r.jsx)("div",{className:`${b}-inner`,style:{position:"relative",zIndex:1,maxWidth:"1280px",margin:"0 auto",width:"100%",display:"flex",alignItems:"center",boxSizing:"border-box"},children:(0,r.jsxs)("div",{style:{maxWidth:"560px"},children:[p.lecturerSummary&&(0,r.jsx)("p",{style:{marginBottom:"12px",fontSize:"20px",fontWeight:500,color:x.labelColor,letterSpacing:"0.05em"},children:p.lecturerSummary}),(0,r.jsx)("h1",{className:`${b}-title`,style:{marginBottom:x.showSubtitle&&p.subtitle?"12px":"32px",fontWeight:700,lineHeight:1.2,color:x.titleColor},children:p.name}),x.showSubtitle&&p.subtitle&&(0,r.jsx)("p",{className:`${b}-subtitle`,style:{marginBottom:"32px",fontWeight:400,lineHeight:1.5,color:"rgba(255,255,255,0.85)"},children:p.subtitle}),m&&!f.isPurchased&&(0,r.jsx)("div",{children:(0,r.jsxs)("div",{style:{display:"flex",alignItems:"stretch",gap:"16px",flexWrap:"wrap"},children:[(0,r.jsxs)("div",{style:{display:"flex",flexDirection:"column",justifyContent:rl(m)?"space-between":"center",gap:"4px"},children:[(0,r.jsxs)("span",{className:`${b}
398-price`,style:{fontWeight:700,color:S},children:[m.currencySymbol??"NT$",m.amount?.toLocaleString?.()??m.amount]}),rl(m)&&(0,r.jsxs)("span",{style:{fontSize:"14px",color:"rgba(255,255,255,0.7)",textDecoration:"line-through"},children:[m.currencySymbol??"NT$",m.compareAtPrice.toLocaleString?.()??m.compareAtPrice]})]}),(0,r.jsx)("button",{type:"button",className:`${b}-cta`,disabled:T,onClick:()=>{T||d?.onPlanSelect?.({plan:{id:m.id,name:m.name,amount:m.amount,currencySymbol:m.currencySymbol,currency:m.currency,slug:m.id,__typename:"CurriculumPlan"}})},style:{padding:"12px 28px",fontSize:"15px",fontWeight:600,color:x.ctaText,backgroundColor:k,border:"none",borderRadius:"6px",cursor:"pointer"},children:T?s?.("general:stop_selling")??"å·²åæ¢è²©å®":s?.("general:buy_now")??"ç«å³è³¼è²·"})]})})]})})]})}},"teachify.courseMedia":e=>{let{componentData:t,params:n,styleParams:o,editorContext:l,getFilteredEditorProps:a,actions:s}=e;return function(e){let d,{editorProps:c}=e,u=(t??{}).hero??{},{variant:p="default"}=tZ(n),f=rf[p]??rf.default,[h,m]=(0,i.useState)(!1),[g]=tQ("intro"),x=tG(u),y=u.videoAspectRatio?String(u.videoAspectRatio).replace(":","/"):"16/9",b=!!u.image&&!h;return f.introTabOnly&&"intro"!==g||!x&&(!b||f.videoOnly)?null:(0,r.jsx)(N.Div,{...o,style:{width:"100%",borderRadius:f.borderRadius,overflow:"hidden",backgroundColor:f.containerBg,display:"block",alignItems:"unset",justifyContent:"unset",textAlign:"left",padding:"0"},editorProps:a(c),editorContext:l,children:x?(0,r.jsx)(tY,{video:x,title:u.name??"Course Promo Video",onPlay:l?.isEdit?void 0:s?.onPromoVideoPlay,onEnded:l?.isEdit?void 0:s?.onPromoVideoEnded,style:{width:"100%",aspectRatio:y,border:0,display:"block"}}):(d=I.utils?.imageProxySets?.(u.image,{width:1200})??{src:u.image},(0,r.jsx)("img",{...d,sizes:"(max-width: 768px) 100vw, 60vw",alt:u.name??"",fetchPriority:"high",style:{width:"100%",aspectRatio:"16/9",objectFit:"cover",display:"block"},onError:()=>m(!0)}))})}},"teachify.courseStatsBand":e=>{let{componentData:t,params:n,styleParams:o,editorContext:l,getFilteredEditorProps:a}=e;return function(e){var s,d;let{editorProps:c}=e,u=t??{},p=u.preOrderInfo,f=u.curriculum??{},h=u.socialProof??{},{variant:m="default"}=tZ(n),g=rC[m]??rC.default,x=(0,i.useId)(),y=`statsband-${x.replace(/:/g,"")}`,{display:b,isActive:v}=function(e){let[t,r]=(0,i.useState)(null);return(0,i.useEffect)(()=>{if(!e)return;r(Date.now());let t=setInterval(()=>r(Date.now()),1e3);return()=>clearInterval(t)},[e]),(0,i.useMemo)(()=>{if(null==t)return{display:"忏ä¸â¦",isActive:e>0};let r=1e3*e-t;if(r<=0)return{display:"å·²çµæ",isActive:!1};let i=Math.floor(r/1e3),n=Math.floor(i/86400),o=Math.floor(i%86400/3600),l=Math.floor(i%3600/60),a=[];return n>0&&a.push(`${n} 天`),a.push(`${o} å°æ`),a.push(`${l} å`),a.push(`${i%60} ç§`),{display:a.join(" "),isActive:!0}},[e,t])}(p?.endedAt??0),w=g.renderWhenOpenDate&&"string"==typeof u.openedAt?u.openedAt:"";if(!p&&!g.alwaysRender&&!w)return null;let j=!p,C=Math.max(0,p?.achievedPercentage??0),k=Math.min(100,C),S=p?.releasedAt??0,T=g.containerPadding??(j?"32px 25px":"64px 25px"),$=u.commerce?.plans?.[0],_=(()=>{let e=$?.planType;if("fixed_date"===e&&$?.endedAt)return`è³ ${rk($.endedAt)}`;if("specific_length"===e&&$?.interval&&$?.intervalCount){var t;return`${$.intervalCount} ${({day:"天",week:"é±",month:"åæ",year:"å¹´"})[t=$.interval]??t}`}return rj})(),E=[{label:"é課æé",value:w?S&&function(e){try{let t=new Intl.DateTimeFormat("en-US",{year:"numeric",month:"2-digit",day:"2-digit",timeZone:"Asia/Taipei"}).formatToParts(new Date(1e3*e)),r=e=>t.find(t=>t.type===e)?.value??"";return`${r("year")}-${r("month")}-${r("day")}`}catch{return""}}(S)===w?rT(S):rS(w):S?rT(S):"-",icon:"date"},{label:"課ç¨å®å ",value:null!=f.totalLectures?`${f.totalLectures} å`:"-",icon:"lectures"},{label:"課ç¨é·åº¦",value:null==(s=f.totalHours)?"-":s>=1?`${Math.round(s)} å°æ`:`${Math.round(60*s)} åé`,icon:"duration"},{label:"課ç¨å¸å¡",value:null!=h.studentsCount?`${h.studentsCount.toLocaleString()} 人`:"-",icon:"students"},{label:"è§çæé",value:_,icon:"watch"}],I=g.compactStats?[{label:"éèª²æ¥æ",value:w?rS(w):S?rk(S):"-",icon:"date"},{label:"æé·",value:null==(d=f.totalHours)?"-":`${Math.round(60*d)} åé`,icon:"duration"},{label:"å®å æ¸",value:null!=f.totalLectures?`${f.totalLectures} å`:"-",icon:"lectures"}]:j&&_===rj?E.filter(e=>"watch"!==e.icon):E;return(0,r.jsxs)(N.Div,{...o,style:{width:"100%",display:"block",backgroundColor:g.bg,boxSizing:"border-box",alignItems:"unset",justifyContent:"unset",textAlign:"left",padding:"0"},editorProps:a(c),editorContext:l,children:[(0,r.jsx)("style",{dangerouslySetInnerHTML:{__html:` 399 .${y}-inner { padding: ${T}; max-width: 1280px; margin: 0 auto; box-sizing: border-box; } 400 .${y}-stats-chip { 401 display: inline-block; 402 padding: 4px 16px; 403 background-color: ${g.statLabelBg}; 404 color: ${g.statLabel}; 405 border-radius: 8px; 406 font-size: 16px; 407 font-weight: 500; 408 line-height: 1.6; 409 letter-spacing: 0.04em; 410 } 411 .${y}-countdown-text { font-size: 20px; } 412 .${y}-stats-value { font-size: 20px; } 413 /* Desktop: evenly distribute the stats with the outer two flush to 414 the progress-bar edges. In a class (not inline) so the mobile 415 @media can override it. */ 416 .${y}-stats-grid { justify-content: space-between; } 417 @media (max-width: 768px) { 418 .${y}-inner { padding: 32px 20px; } 419 .${y}-countdown-text { font-size: 18px; } 420 .${y}-stats-value { font-size: 18px; } 421 /* Stack countdown rows + left-align (override inline align-items: center) */ 422 .${y}-countdown-row { flex-direction: column; gap: 4px; align-items: flex-start !important; } 423 /* Compact chip on mobile to keep the [chip] value row from wrapping. */ 424 .${y}-stats-chip { padding: 4px 8px; font-size: 14px; } 425 /* Mobile stats: single column, each row is "[chip] value" side-by-side */ 426 .${y}-stats-grid { flex-direction: column; justify-content: flex-start; gap: 12px !important; } 427 .${y}-stats-col { 428 width: 100%; 429 flex: 0 0 auto !important; 430 text-align: left !important; 431 padding: 0 !important; 432 display: flex !important; 433 flex-direction: row !important; 434 align-items: center; 435 gap: 12px; 436 } 437 .${y}-stats-col > p { margin: 0 !important; } 438 } 439 `}}),(0,r.jsxs)("div",{className:`${y}-inner`,children:["icon-inline"===g.layout&&g.title&&(0,r.jsx)("h2",{style:{margin:"0 0 24px 0",fontFamily:"'Noto Sans CJK TC', 'Noto Sans TC', sans-serif",fontSize:"24px",fontWeight:700,lineHeight:1,color:g.titleColor??g.statValue},children:g.title}),v&&p&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:`${y}-countdown-row`,style:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:"10px",gap:"16px"},children:[(0,r.jsxs)("div",{style:{display:"flex",alignItems:"baseline",gap:"8px",flexWrap:"wrap"},children:[(0,r.jsx)("span",{className:`${y}-countdown-text`,style:{fontWeight:600,color:g.statValue,letterSpacing:"0.05em"},children:"éæåæ¸"}),(0,r.jsx)("span",{className:`${y}-countdown-text`,style:{fontWeight:700,color:g.statValue},children:b})]}),(0,r.jsxs)("div",{style:{display:"flex",alignItems:"baseline",gap:"4px",flexShrink:0},children:[(0,r.jsx)("span",{className:`${y}-countdown-text`,style:{fontWeight:600,color:g.statValue},children:"已鿍"}),(0,r.jsxs)("span",{className:`${y}-countdown-text`,style:{fontWeight:700,color:g.statValue},children:[C,"%"]})]})]}),(0,r.jsx)("div",{style:{width:"100%",height:"6px",borderRadius:"3px",backgroundColor:g.progressTrack,overflow:"hidden",marginBottom:"20px"},children:(0,r.jsx)("div",{style:{height:"100%",width:`${k}%`,backgroundColor:g.progressFill,borderRadius:"3px",transition:"width 0.4s ease"}})})]}),"icon-inline"===g.layout?(0,r.jsx)(r$,{stats:I,v:g,cls:y}):(0,r.jsx)("div",{className:`${y}-stats-grid`,style:{display:"flex",gap:"8px"},children:I.map(e=>(0,r.jsxs)("div",{className:`${y}-stats-col`,style:{textAlign:"center"},children:[(0,r.jsx)("p",{style:{margin:"0 0 8px 0"},children:(0,r.jsx)("span",{className:`${y}-stats-chip`,children:e.label})}),(0,r.jsx)("p",{className:`${y}-stats-value`,style:{margin:0,fontWeight:600,color:g.statValue},children:e.value})]},e.label))})]})]})}}
439,"teachify.courseTabs":e=>{let{componentData:t,params:n,styleParams:o,editorContext:l,getFilteredEditorProps:a,t:s,slots:d,actions:c}=e,u=c?.onSectionClick,p=c?.onInstructorClick,f=c?.onTrialLectureClick,h=c?.onPromoVideoPlay,m=c?.onPromoVideoEnded;return function(e){let{editorProps:c}=e,g=t??{},{variant:x="default",mode:y="all"}=tZ(n),[b,v]=tQ("intro"),w=t8[x]??t8.default,j=!!g.isCommentActive,C=!!g.isRatingActive,k=w.tabs??t5,S=(0,i.useMemo)(()=>w.conditionalTabs?k.filter(e=>"inquiry"===e&&w.conditionalTabs.includes("inquiry")?j:!("reviews"===e&&w.conditionalTabs.includes("reviews"))||C):k,[w,k,j,C]),T=(0,i.useId)(),$=`tabs-${T.replace(/:/g,"")}`,_=l?.isEdit,E=!!w.singlePageScroll,I=(0,i.useRef)(null);(0,i.useEffect)(()=>{if(!E||"bar"===y||_||"u"<typeof document||"u"<typeof IntersectionObserver)return;let e=S.map(e=>document.getElementById(`course-tabs-section-${e}`)).filter(e=>!!e);if(0===e.length)return;let t=new Set,r=null,i=e=>{e&&e!==r&&(r=e,window.dispatchEvent(new CustomEvent(tK,{detail:e})))},n=()=>document.documentElement.scrollHeight>window.innerHeight+2&&window.innerHeight+window.scrollY>=document.documentElement.scrollHeight-2,o=new IntersectionObserver(e=>{for(let r of e){let e=r.target.dataset.courseTabsSection;e&&(r.isIntersecting?t.add(e):t.delete(e))}Date.now()<tX||(n()?i(S[S.length-1]??null):i(S.find(e=>t.has(e))??null))},{rootMargin:"-96px 0px -55% 0px",threshold:0});e.forEach(e=>o.observe(e));let l=()=>{!(Date.now()<tX)&&n()&&i(S[S.length-1]??null)};return window.addEventListener("scroll",l,{passive:!0}),l(),()=>{o.disconnect(),window.removeEventListener("scroll",l)}},[E,y,_,S]);let A="bar"===y;return(0,r.jsxs)(N.Div,{...o,className:A?`${$}-stickybar`:void 0,style:{width:"100%",display:"block",alignItems:"unset",justifyContent:"unset",textAlign:"left",padding:"0",...A?{position:"sticky",zIndex:20}:{}},editorProps:a(c),editorContext:l,children:[(0,r.jsx)("style",{dangerouslySetInnerHTML:{__html:` 440 /* mode='all': the bar stickies itself (its wrapper also holds the content below). 441 mode='bar' (split layout): the wrapper Div carries the sticky instead (see JSX) â 442 this bar is just the visual row, so it stays static to avoid a redundant nested sticky. */ 443 .${$}-bar { border-top: 1px solid ${w.borderColor}; border-bottom: 1px solid ${w.borderColor}; ${"bar"===y?"":"position: sticky; top: 0; z-index: 10;"} background-color: ${w.barBg}; } 444 ${"bar"===y?`/* Sticky wrapper offset: flush to top on desktop (header doesn't stick), below the 64px navbar on mobile (handled in the @media below). */ 445 .${$}-stickybar { top: 0; }`:""} 446 .${$}-bar-inner { display: flex; max-width: ${w.barInnerMaxWidth??"none"}; margin: 0 auto; padding: ${w.barInnerPadding??"0"}; box-sizing: border-box; } 447 .${$}-btn { flex: 1; padding: 16px 8px; text-align: center; font-size: 14px; font-weight: 500; background: none; border: none; cursor: pointer; white-space: nowrap; } 448 /* faq-item is transparent so the expanded answer area shows through to the page background; summary keeps its own opaque bg. */ 449 .${$}-faq-item { margin-bottom: 12px; border: 1px solid ${w.accordionBorder}; border-radius: 8px; background: transparent; overflow: hidden; } 450 .${$}-faq-item > summary { list-style: none; padding: 16px 20px; font-size: 16px; font-weight: 500; color: ${w.accordionTitle}; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; background-color: ${w.accordionBg}; } 451 .${$}-faq-item > summary::-webkit-details-marker { display: none; } 452 /* Only show summary border-bottom when expanded â closed state relies on faq-item outer border. */ 453 .${$}-faq-item[open] > summary { border-bottom: 1px solid ${w.accordionBorder}; } 454 .${$}-faq-chevron { flex-shrink: 0; transition: transform 0.2s ease; } 455 .${$}-faq-item[open] > summary .${$}-faq-chevron { transform: rotate(180deg); } 456 .${$}-faq-answer { border-top: 1px solid #0D0D0D; padding: 16px 20px; font-size: 16px; color: ${w.contentText}; line-height: 1.6; } 457 /* Force lecturer bio color to override TipTap-stored inline colors on inner elements */ 458 .course-tabs-lecturer-bio, .course-tabs-lecturer-bio * { color: #ffffff !important; } 459 /* Keep rich-text inline media responsive inside intro/faq blocks */ 460 .${$}-rich img, .${$}-rich picture img, .${$}-rich video { max-width: 100%; height: auto; display: block; } 461 .${$}-rich figure { margin: 16px 0; } 462 ${w.richTextSpaced?` 463 /* Restore prose spacing â Tailwind v4 preflight (apps/frontend) zeroes 464 p/h*/ul/ol margins + list-style site-wide, leaving the description 465 HTML (which already ships with <h2>/<p>/<ul>) as a flat wall of 466 text. Typography below matches the spotlight figma spec 467 (TPLUS-887): headings Noto Sans TC 28px/700/lh1, body Arial 468 16px/400/lh2. Gated by richTextSpaced so authority-dark / dark / 469 default / light stay byte-identical. */ 470 .${$}-rich h1, .${$}-rich h2, .${$}-rich h3, .${$}-rich h4, .${$}-rich h5, .${$}-rich h6, 471 .${$}-rich p, 472 .${$}-rich ul, .${$}-rich ol, 473 .${$}-rich blockquote { margin: 0 0 1em 0; } 474 .${$}-rich h1, .${$}-rich h2, .${$}-rich h3 { 475 font-family: 'Noto Sans TC', 'Noto Sans CJK TC', sans-serif; 476 font-size: 28px; font-weight: 700; line-height: 1; 477 margin-top: 1.5em; margin-bottom: 0.75em; 478 } 479 /* h2 is the primary in-body heading â sized smaller than h1/h3 480 per TPLUS-889: 24px desktop, 20px mobile. */ 481 .${$}-rich h2 { font-size: 24px; } 482 @media (max-width: 768px) { 483 .${$}-rich h2 { font-size: 20px; } 484 } 485 .${$}-rich h4, .${$}-rich h5, .${$}-rich h6 { 486 font-family: 'Noto Sans TC', 'Noto Sans CJK TC', sans-serif; 487 font-size: 20px; font-weight: 700; line-height: 1.2; 488 margin-top: 1.5em; margin-bottom: 0.5em; 489 } 490 .${$}-rich > h1:first-child, .${$}-rich > h2:first-child, .${$}-rich > h3:first-child, 491 .${$}-rich > h4:first-child, .${$}-rich > h5:first-child, .${$}-rich > h6:first-child { margin-top: 0; } 492 /* Body uses Arial for Latin + Noto Sans TC for CJK (already loaded 493 via the school's Google Fonts <link> at weights 400/500/700). 494 Without the explicit Noto fallback, CJK glyphs drop through to 495 the platform's generic sans-serif (PingFang TC on macOS), which 496 reads as the same "Chinese sans" family as the heading â making 497 body and heading look near-identical at a glance. */ 498 .${$}-rich p, .${$}-rich li, .${$}-rich blockquote { 499 font-family: Arial, 'Noto Sans TC', 'Noto Sans CJK TC', sans-serif; 500 font-size: 16px; font-weight: 400; line-height: 2; 501 } 502 /* Lists stay flat (no markers, no indent) â the source content in 503 cwlearning's course intro uses â characters inside <p>/<li> as
504 the visual marker, so adding disc bullets would double-up. */ 505 .${$}-rich ul, .${$}-rich ol { padding-left: 0; list-style: none; } 506 .${$}-rich li { margin: 0 0 0.25em 0; } 507 .${$}-rich li > p { margin: 0; } 508 .${$}-rich blockquote { padding: 12px 16px; border-left: 3px solid currentColor; opacity: 0.85; } 509 `:""} 510 /* Inquiry tab hosts frontend's <CommentSection /> via slot. Hide its 511 internal h3 (the tab label already provides the same heading) and 512 force light text so labels/empty-state copy stay legible on the 513 dark template background. Inputs/buttons keep their own colors. */ 514 .${$}-inquiry .course-comments > h3 { display: none; } 515 .${$}-inquiry .course-comments { color: ${w.contentText}; } 516 /* TotalReviews (the 5.0 score + stars) ships its own px-4 (16px) 517 left padding for its default embedding elsewhere â inside the 518 spotlight single-page layout that leaves the score 16px to the 519 right of the section heading/review-card, which sit flush at the 520 tab body's own edge (no matching padding). Zero it out here only, 521 so other templates that DO rely on that inset keep their layout 522 (TEACH-20790 fix 3). */ 523 .${$}-reviews .course-reviews-summary { padding-left: 0 !important; } 524 /* Reviews tab hosts frontend's <RatingSection /> via slot (TEACH-20790). 525 RatingSection/TotalReviews/LatestRates/Rate are Chakra components 526 styled with the school's brand tokens (bg=/color= props) â force the 527 figma palette via the stable classNames those components expose for 528 this purpose (course-review(s)-*). !important beats the inline 529 color/background styles the Chakra shim emits for those props. */ 530 .${$}-reviews .course-reviews-heading { color: ${w.reviewAuthorColor} !important; } 531 .${$}-reviews .course-reviews-score { color: ${w.reviewAuthorColor} !important; } 532 .${$}-reviews .course-reviews-count { color: ${w.mutedText} !important; } 533 .${$}-reviews .course-review-card { background: ${w.reviewCardBg} !important; border: 1px solid ${w.reviewCardBorder}; } 534 .${$}-reviews .course-review-avatar { background: ${w.avatarBg} !important; color: ${w.avatarText} !important; } 535 .${$}-reviews .course-review-author { color: ${w.reviewAuthorColor} !important; } 536 .${$}-reviews .course-review-date { color: ${w.mutedText} !important; } 537 .${$}-reviews .course-review-body { color: ${w.reviewBodyColor} !important; } 538 /* Star fill: Rating's emptyStarColor prop is hardcoded to '#ddd' by 539 @kaikhq/components (not caller-configurable), so recolor via the 540 label elements StarRatingComponent renders â it sets an inline 541 color style, which an !important class rule still wins over 542 regardless of selector specificity. */ 543 .${$}-reviews .course-reviews-stars .dv-star-rating-full-star, 544 .${$}-reviews .course-review-stars .dv-star-rating-full-star { color: #E54228 !important; } 545 .${$}-reviews .course-reviews-stars .dv-star-rating-empty-star, 546 .${$}-reviews .course-review-stars .dv-star-rating-empty-star { color: #989A9A !important; } 547 /* Curriculum heading â desktop 20px / mobile 18px */ 548 .${$}-curriculum-title { font-size: 20px; font-weight: 700; margin: 0; } 549 @media (max-width: 768px) { 550 .${$}-curriculum-title { font-size: 18px; } 551 } 552 @media (max-width: 768px) { 553 /* School navbar is sticky on mobile (min-height 4rem). Offset tabs so they don't sit under it. */ 554 .${$}-bar { top: 64px; } 555 ${"bar"===y?`.${$}-stickybar { top: 64px; }`:""} 556 } 557 @media (max-width: 480px) { 558 ${"spotlight"===x?` 559 /* Swipeable tab bar (shifu reference, TPLUS-898): each label stays on one 560 line and the row scrolls horizontally instead of wrapping or squeezing. 561 Hide the scrollbar so it reads as a clean swipe. Scoped to spotlight so 562 other templates keep their existing mobile behavior. */ 563 .${$}-bar-inner { padding: 0 8px; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; } 564 .${$}-bar-inner::-webkit-scrollbar { display: none; } 565 .${$}-btn { flex: 0 0 auto; padding: 12px 16px; font-size: 14px; white-space: nowrap; } 566 `:` 567 /* Distribute tabs evenly on mobile (TEACH-18906) */ 568 .${$}-btn { flex: 1; padding: 12px 8px; font-size: 13px; min-width: 0; white-space: normal; } 569 `} 570 } 571 ${E&&"bar"!==y?` 572 /* Single-page scroll (TEACH-19625): stack the tab sections with a gap; 573 scroll-margin-top lands an anchored section below the sticky bar 574 (+64px mobile navbar) as a CSS-level backup to the JS scroll offset. 575 Gated by singlePageScroll so paged variants stay byte-identical. */ 576 .${$}-section { scroll-margin-top: 96px; } 577 .${$}-section:not(:last-child) { margin-bottom: 64px; } 578 @media (max-width: 768px) { 579 .${$}-section { scroll-margin-top: 144px; } 580 } 581 `:""} 582 `}}),"content"!==y&&(0,r.jsx)("div",{className:`${$}-bar`,ref:I,"data-course-tabs-bar":!0,children:(0,r.jsx)("div",{className:`${$}-bar-inner`,children:S.map(e=>{let t=w.activeIndicatorHeight??3;return(0,r.jsx)("button",{type:"button",className:`${$}-btn`,onClick:()=>(e=>{if(v(e),_||u?.(e),!E||_||"u"<typeof document)return;let t=document.getElementById(`course-tabs-section-${e}`);if(!t)return;tX=Date.now()+700;let r=I.current?.getBoundingClientRect().height??0,i=64*(window.innerWidth<=768),n=t.getBoundingClientRect().top+window.scrollY-(r+i);window.scrollTo({top:n,behavior:"smooth"})})(e),style:{color:b===e?w.activeTabText:w.inactiveTabText,borderBottom:b===e?`${t}px solid ${w.activeIndicator}`:`${t}px solid transparent`,fontFamily:w.tabFontFamily},children:w.tabLabels?.[e]??t2(e,s)},e)})})}),"bar"!==y&&(0,r.jsx)("div",{style:{padding:"spotlight"===x?"0":"24px 0"},children:E?S.map(e=>(0,r.jsxs)("section",{id:`course-tabs-section-${e}`,"data-course-tabs-section":e,className:`${$}-section`,children:[t4.includes(e)&&(0,r.jsx)("h2",{className:`${$}-curriculum-title`,style:{color:w.accordionTitle,marginBottom:"24px"},children:w.tabLabels?.[e]??t2(e,s)}),(e=>
582{switch(e){case"intro":return(0,r.jsx)(t7,{vm:g,v:w,cls:$,isEdit:_,showLecturers:!S.includes("lecturer"),onInstructorClick:p,onPromoVideoPlay:h,onPromoVideoEnded:m});case"curriculum":return(0,r.jsx)(t9,{vm:g,v:w,cls:$,isEdit:_,onTrialClick:f});case"lecturer":return(0,r.jsx)(re,{vm:g,v:w,cls:$,isEdit:_,onInstructorClick:p});case"faq":return(0,r.jsx)(rr,{vm:g,v:w,cls:$});case"preview":return(0,r.jsx)(rt,{vm:g,v:w,cls:$,isEdit:_,hideTitle:E,onTrialClick:f});case"inquiry":return(0,r.jsx)(ri,{v:w,slot:d?.inquiry,cls:$});case"reviews":return(0,r.jsx)(rn,{v:w,slot:d?.reviews,cls:$});default:return null}})(e)]},e)):(0,r.jsxs)(r.Fragment,{children:["intro"===b&&(0,r.jsx)(t7,{vm:g,v:w,cls:$,isEdit:l?.isEdit,showLecturers:!S.includes("lecturer"),onInstructorClick:p,onPromoVideoPlay:h,onPromoVideoEnded:m}),"curriculum"===b&&(0,r.jsx)(t9,{vm:g,v:w,cls:$,isEdit:l?.isEdit,onTrialClick:f}),"lecturer"===b&&(0,r.jsx)(re,{vm:g,v:w,cls:$,isEdit:l?.isEdit,onInstructorClick:p}),"faq"===b&&(0,r.jsx)(rr,{vm:g,v:w,cls:$}),"preview"===b&&(0,r.jsx)(rt,{vm:g,v:w,cls:$,isEdit:l?.isEdit,onTrialClick:f}),"inquiry"===b&&(0,r.jsx)(ri,{v:w,slot:d?.inquiry,cls:$}),"reviews"===b&&(0,r.jsx)(rn,{v:w,slot:d?.reviews,cls:$})]})})]})}},"teachify.courseInfoCard":e=>{let{componentData:t,params:i,styleParams:n,editorContext:o,getFilteredEditorProps:l}=e;return function(e){let{editorProps:a}=e,s=(t??{}).curriculum??{},{variant:d="default"}=tZ(i),c=rc[d]??rc.default;return(0,r.jsx)(N.Div,{...n,style:{borderRadius:"8px",border:`1px solid ${c.cardBorder}`,backgroundColor:c.cardBg,overflow:"hidden",display:"block",alignItems:"unset",justifyContent:"unset",textAlign:"left",padding:"0"},editorProps:l(a),editorContext:o,children:(0,r.jsxs)("div",{style:{padding:"20px",fontSize:"14px",lineHeight:1.8},children:[(0,r.jsx)("p",{style:{fontWeight:500,color:c.labelColor,margin:"0 0 4px 0"},children:"æ¬èª²ç¨å
å«ä»¥ä¸å
§å®¹ï¼"}),null!=s.totalHours&&s.totalHours>0&&(0,r.jsxs)("p",{style:{color:c.metaColor,margin:"2px 0"},children:["課ç¨é·åº¦ç´ ",s.totalHours," å°æ"]}),null!=s.totalLectures&&s.totalLectures>0&&(0,r.jsxs)("p",{style:{color:c.metaColor,margin:"2px 0"},children:[s.totalLectures," å課ç¨å®å
"]})]})})}},"teachify.coursePricingCard":e=>{let{componentData:t,params:n,styleParams:o,editorContext:l,getFilteredEditorProps:a,actions:s,t:d}=e;return function(e){let{editorProps:c}=e,u=t??{},p=u.commerce??{},f=u.hero??{},h=u.preOrderInfo,{plans:m=[],isPurchased:g,courseType:x}=p,y="free_redeem"===x||"public_access"===x,{variant:b="default"}=tZ(n),v=ry[b]??ry.default,w=rm(h?.endedAt??0),j=v.highlightCtaBg??"#e07b28",C=e=>rh(e)||w?j:v.ctaBg,k=(0,i.useId)(),S=`pricing-mobile-sticky-${k.replace(/:/g,"")}`,T=`pricing-cards-${k.replace(/:/g,"")}`;if(g)return(0,r.jsx)(N.Div,{...o,editorProps:a(c),editorContext:l,style:{padding:"20px",borderRadius:"8px",border:`1px solid ${v.cardBorder}`,backgroundColor:v.cardBg,display:"block",textAlign:"center",alignItems:"unset",justifyContent:"unset"},children:(0,r.jsx)("p",{style:{fontWeight:500,color:v.purchasedColor,margin:0},children:d?.("general:purchased")??"已購買æ¤èª²ç¨"})});if(0===m.length)return null;let $=m[0],_=$?.currencySymbol??"NT$",E=$?.remainingItemsCount===0,A=E?d?.("general:stop_selling")??"å·²åæ¢è²©å®":y?d?.("general:free")??"å
è²»":`${d?.("general:buy_now")??"ç«å³è³¼è²·"} ${_}${$?.amount?.toLocaleString?.()??$?.amount??""}`;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(N.Div,{...o,id:T,editorProps:a(c),editorContext:l,style:{display:"flex",flexDirection:"column",gap:"12px",alignItems:"stretch",justifyContent:"flex-start",textAlign:"left",padding:"0",scrollMarginTop:"130px"},children:m.map(e=>{let t,i,n=e.currencySymbol??"NT$",o=rg(e,f),l=C(e),a=0===e.remainingItemsCount;return"rich-card"===v.layout?(0,r.jsx)(rb,{plan:e,hero:f,v:v,ctaBg:l,isSoldOut:a,isFree:y,preOrderInfo:h,t:d,actions:s},e.id):(0,r.jsxs)("div",{style:{borderRadius:"16px",border:`1px solid ${v.cardBorder}`,backgroundColor:v.cardBg,overflow:"hidden"},children:[e.coverPhoto&&(0,r.jsx)("div",{style:{padding:"16px 16px 0 16px"},children:(0,r.jsx)("img",{...I.utils.imageProxySets(e.coverPhoto,{width:640})??{src:e.coverPhoto},sizes:"(max-width: 768px) 100vw, 33vw",alt:e.name??"",style:{display:"block",width:"100%",aspectRatio:"4 / 3",objectFit:"cover",backgroundColor:"#d9d9d9",borderRadius:"16px"}})}),(0,r.jsxs)("div",{style:{padding:"16px"},children:[(t=e.name||f.name)?(0,r.jsx)("h3",{style:{margin:"0 0 8px 0",fontSize:"18px",fontWeight:700,color:v.titleColor},children:t}):null,(i=e.description||f.subtitle)?(0,r.jsx)("p",{style:{margin:"0 0 12px 0",fontSize:"13px",color:v.metaColor,lineHeight:1.5},children:i}):null,null!=e.compareAtPrice&&e.compareAtPrice>e.amount&&(0,r.jsxs)("p",{style:{margin:"0 0 12px 0",fontSize:"14px",color:v.metaColor,textDecoration:"line-through"}
582,children:[n,e.compareAtPrice.toLocaleString()]}),y&&(0,r.jsx)("p",{style:{margin:"0 0 12px 0",fontSize:"20px",fontWeight:700,color:v.priceColor},children:d?.("general:free")??"å è²»"}),(0,r.jsx)("button",{type:"button",disabled:a,onClick:()=>{a||s?.onPlanSelect?.({plan:{...o,recurring:"subscription"===e.planType}})},style:{width:"100%",padding:"12px",fontSize:"14px",fontWeight:600,color:v.ctaText,backgroundColor:l,border:"none",borderRadius:"6px",cursor:"pointer",textAlign:"center"},children:a?d?.("general:stop_selling")??"å·²åæ¢è²©å®":`${d?.("general:buy_now")??"ç«å³è³¼è²·"} ${n}${e.amount?.toLocaleString?.()??e.amount}`}),!y&&s?.onAddToCart&&(0,r.jsxs)("button",{type:"button",disabled:a,onClick:()=>{a||s?.onAddToCart?.({plan:{...o,compareAtPrice:e.compareAtPrice,recurring:"subscription"===e.planType}})},style:{width:"100%",padding:"12px",fontSize:"14px",fontWeight:600,color:l,backgroundColor:"transparent",border:`1px solid ${l}`,borderRadius:"6px",cursor:"pointer",textAlign:"center",marginTop:"8px",display:"inline-flex",alignItems:"center",justifyContent:"center",gap:"6px"},children:[(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,r.jsx)("path",{d:"M6 2 3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6l-3-4Z"}),(0,r.jsx)("path",{d:"M3 6h18"}),(0,r.jsx)("path",{d:"M16 10a4 4 0 0 1-8 0"})]}),d?.("general:add_to_cart")??"æ·»å è³è³¼ç©è»"]})]})]},e.id)})}),$&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("style",{dangerouslySetInnerHTML:{__html:` 583 .${S} { display: none; } 584 @media (max-width: 768px) { 585 .${S} { 586 display: block; 587 position: fixed; 588 left: 0; 589 right: 0; 590 bottom: 0; 591 z-index: 100; 592 background: ${v.stickyBg}; 593 border-top: 1px solid ${v.cardBorder}; 594 padding: 12px max(16px, env(safe-area-inset-left)) max(12px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-right)); 595 } 596 } 597 `}}),(0,r.jsx)("div",{className:S,children:(0,r.jsx)("button",{type:"button",disabled:E,onClick:()=>{E||document.getElementById(T)?.scrollIntoView({behavior:"smooth",block:"start"})},style:{width:"100%",padding:"14px",fontSize:"15px",fontWeight:600,color:v.ctaText,backgroundColor:C($),border:"none",borderRadius:"8px",cursor:"pointer",textAlign:"center"},children:A})})]})]})}},"teachify.courseLecturers":e=>{let{componentData:t,params:n,styleParams:o,editorContext:l,getFilteredEditorProps:a,actions:s}=e,d=s?.onInstructorClick;return function(e){let{editorProps:s}=e,c=(0,i.useId)(),u=(t??{}).lecturers??[];if(0===u.length)return null;let{variant:p="default"}=tZ(n),f=ru[p]??ru.default,h=`lecturer-bio-${c.replace(/:/g,"")}`,m=l?.isEdit;return(0,r.jsxs)(N.Div,{...o,editorProps:a(s),editorContext:l,style:{maxWidth:"896px",margin:"0 auto",padding:"48px 32px",display:"block",alignItems:"unset",justifyContent:"unset",textAlign:"left"},children:[(0,r.jsx)("style",{dangerouslySetInnerHTML:{__html:`.${h}, .${h} * { color: ${f.bioColor} !important; }`}}),(0,r.jsx)("h2",{style:{marginBottom:"32px",fontSize:"18px",fontWeight:700,color:f.headingColor},children:"éæ¼è¬å¸«"}),u.map(e=>{let t=e.slug?`/@${e.slug}`:void 0,i=d&&(()=>d({id:e.id,slug:e.slug,name:e.name})),n={textDecoration:"none",color:"inherit",cursor:m?"default":"pointer",pointerEvents:m?"none":"auto"},o=e.avatar?(0,r.jsx)("img",{src:I.utils?.imgProxyLoader?.({src:e.avatar,width:192})??e.avatar,alt:e.name,width:96,height:96,loading:"lazy",style:{width:"96px",height:"96px",borderRadius:"50%",objectFit:"cover",flexShrink:0}}):(0,r.jsx)("div",{style:{width:"96px",height:"96px",borderRadius:"50%",backgroundColor:f.avatarFallbackBg,display:"flex",alignItems:"center",justifyContent:"center",fontSize:"28px",fontWeight:700,color:f.avatarFallbackText,flexShrink:0},children:e.name?.charAt?.(0)??"?"});return(0,r.jsxs)("div",{style:{display:"flex",gap:"24px",marginBottom:"40px"},children:[t?(0,r.jsx)("a",{href:m?void 0:t,onClick:rp(m,i),style:{...n,flexShrink:0,lineHeight:0},children:o}):o,(0,r.jsxs)("div",{style:{minWidth:0},children:[(0,r.jsx)("h3",{style:{margin:"0 0 8px 0",fontSize:"16px",fontWeight:600,color:f.nameColor},children:t?(0,r.jsx)("a",{href:m?void 0:t,onClick:rp(m,i),style:n,children:e.name}):e.name}),e.bio&&(0,r.jsx)("div",{className:h,style:{fontSize:"14px",color:f.bioColor,lineHeight:1.7},dangerouslySetInnerHTML:{__html:tH((0,Q.sanitizeHtml)(e.bio,"extended"),{lazy:!0})}})]})]},e.id)})]})}},"teachify.recommendationsSlot":e=>{let{styleParams:t,editorContext:i,getFilteredEditorProps:n,slots:o}=e;return function(e){let{editorProps:l}=e;return o?.recommendations?(0,r.jsx)(N.Div,{...t,editorProps:n(l),editorContext:i,children:o.recommendations}):(0,r.jsx)(N.Div,{...t,editorProps:n(l),editorContext:i})}}
597,"teachify.courseRecommendations":e=>{let{componentData:t,params:i,styleParams:n,editorContext:o,getFilteredEditorProps:l,actions:a,t:s}=e;return function(e){let{editorProps:d}=e,c=(t??{}).recommendations??[],{variant:u="default"}=tZ(i),p=rw[u]??rw.default;return 0===c.length?(0,r.jsx)(N.Div,{...n,editorProps:l(d),editorContext:o}):(0,r.jsxs)(N.Div,{...n,editorProps:l(d),editorContext:o,style:{display:"block",textAlign:"left",alignItems:"unset",justifyContent:"unset"},children:[(0,r.jsx)("p",{style:{margin:"0 0 12px",fontFamily:"'Noto Sans CJK TC', 'Noto Sans TC', sans-serif",fontSize:"16px",fontWeight:600,color:p.headingColor},children:s?.("custom:recommendations.title")??"æ¨è¦åå"}),(0,r.jsx)("div",{style:{display:"flex",flexDirection:"column",gap:"16px"},children:c.map(e=>{let t,i=s?.("general:buy_now")??"ç«å³è³¼è²·",n=s?.("general:add_to_cart")??"å å
¥è³¼ç©è»",o=rv.has(e.__typename??""),l="MembershipPlan"===e.__typename&&e.priceLabel?e.priceLabel.split(" / ")[0]:e.priceLabel,d={id:e.id,name:e.title,coverPhoto:e.coverUrl??void 0,amount:e.amount??0,currencySymbol:e.currencySymbol,currency:e.currency,slug:e.id,__typename:e.__typename,recurring:e.recurring??("subscription"===e.planType||null)};return(0,r.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:"14px",borderRadius:p.cardRadius,border:`1px solid ${p.cardBorder}`,backgroundColor:p.cardBg,padding:"16px",overflow:"hidden"},children:[(0,r.jsxs)("a",{href:e.href,style:{display:"flex",flexDirection:"column",gap:"14px",textDecoration:"none",color:"inherit"},children:[e.coverUrl?(0,r.jsx)("img",{...I.utils.imageProxySets(e.coverUrl,{width:640})??{src:e.coverUrl},sizes:"(max-width: 768px) 100vw, 33vw",alt:e.title,style:{display:"block",width:"100%",aspectRatio:"16 / 9",objectFit:"cover",borderRadius:p.cardRadius,backgroundColor:p.placeholderBg}}):(0,r.jsx)("div",{style:{width:"100%",aspectRatio:"16 / 9",borderRadius:p.cardRadius,backgroundColor:p.placeholderBg}}),(0,r.jsxs)("div",{children:[(0,r.jsx)("p",{style:{margin:"0 0 6px",fontSize:"12px",color:p.typeColor},children:s?.(`custom:recommendations.types.${e.sellableType}`)??""}),(0,r.jsx)("h3",{style:{margin:"0 0 12px",fontFamily:"'Noto Sans CJK TC', 'Noto Sans TC', sans-serif",fontSize:"18px",fontWeight:700,lineHeight:1.5,color:p.titleColor,display:"-webkit-box",WebkitLineClamp:2,WebkitBoxOrient:"vertical",overflow:"hidden"},children:e.title}),(t=e.description?e.description.replace(/<\s*br\s*\/?>/gi,"\n").replace(/<\/\s*(?:p|div|li|h[1-6])\s*>/gi,"\n").replace(/<[^>]*>/g,"").replace(/ /g," ").replace(/</g,"<").replace(/>/g,">").replace(/"/g,'"').replace(/&#(?:39|x27);/g,"'").replace(/&/g,"&").replace(/[ \t\f\v]+/g," ").replace(/ *\n */g,"\n").replace(/\n{3,}/g,"\n\n").trim():"")?(0,r.jsx)("p",{style:{margin:"0 0 12px",fontSize:"13px",lineHeight:1.5,color:p.descColor,whiteSpace:"pre-line"},children:t}):null,(0,r.jsx)("p",{style:{margin:0,fontFamily:"Arial, sans-serif",fontSize:"32px",fontWeight:700,lineHeight:1,color:p.priceColor},children:l})]})]}),(0,r.jsxs)("div",{style:{display:"flex",gap:"8px",marginTop:"4px"},children:[o?(0,r.jsx)("button",{type:"button",onClick:()=>a?.onPlanSelect?.({plan:d,source:"recommendation"}),style:{flex:"1 1 auto",padding:"14px 16px",fontSize:"16px",fontWeight:700,fontFamily:"inherit",color:p.ctaText,backgroundColor:p.ctaBg,border:"none",borderRadius:"5px",textAlign:"center",cursor:"pointer"},children:i}):(0,r.jsx)("a",{href:e.href,style:{flex:"1 1 auto",padding:"14px 16px",fontSize:"16px",fontWeight:700,color:p.ctaText,backgroundColor:p.ctaBg,borderRadius:"5px",textAlign:"center",textDecoration:"none"},children:i}),o?(0,r.jsx)("button",{type:"button","aria-label":n,onClick:()=>a?.onAddToCart?.({plan:{...d,compareAtPrice:null},source:"recommendation"}),style:{flex:"0 0 52px",width:"52px",height:"52px",padding:0,color:p.cartIconColor,backgroundColor:"transparent",border:`1px solid ${p.cartBorder}`,borderRadius:"5px",cursor:"pointer",display:"inline-flex",alignItems:"center",justifyContent:"center"},children:(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"22",height:"22",viewBox:"0 0 24 24",fill:"
597currentColor","aria-hidden":"true",children:(0,r.jsx)("path",{d:"M2.25 2.25a.75.75 0 0 0 0 1.5h1.386c.17 0 .318.114.362.278l2.558 9.592a3.752 3.752 0 0 0-2.806 3.63c0 .414.336.75.75.75h15.75a.75.75 0 0 0 0-1.5H5.378A2.25 2.25 0 0 1 7.5 15h11.218a.75.75 0 0 0 .674-.421 60.358 60.358 0 0 0 2.96-7.228.75.75 0 0 0-.525-.965A60.864 60.864 0 0 0 5.68 4.509l-.232-.867A1.875 1.875 0 0 0 3.636 2.25H2.25ZM3.75 20.25a1.5 1.5 0 1 1 3 0 1.5 1.5 0 0 1-3 0ZM16.5 20.25a1.5 1.5 0 1 1 3 0 1.5 1.5 0 0 1-3 0Z"})})}):(0,r.jsx)("a",{href:e.href,"aria-label":n,style:{flex:"0 0 52px",width:"52px",height:"52px",color:p.cartIconColor,border:`1px solid ${p.cartBorder}`,borderRadius:"5px",display:"inline-flex",alignItems:"center",justifyContent:"center"},children:(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"22",height:"22",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",children:(0,r.jsx)("path",{d:"M2.25 2.25a.75.75 0 0 0 0 1.5h1.386c.17 0 .318.114.362.278l2.558 9.592a3.752 3.752 0 0 0-2.806 3.63c0 .414.336.75.75.75h15.75a.75.75 0 0 0 0-1.5H5.378A2.25 2.25 0 0 1 7.5 15h11.218a.75.75 0 0 0 .674-.421 60.358 60.358 0 0 0 2.96-7.228.75.75 0 0 0-.525-.965A60.864 60.864 0 0 0 5.68 4.509l-.232-.867A1.875 1.875 0 0 0 3.636 2.25H2.25ZM3.75 20.25a1.5 1.5 0 1 1 3 0 1.5 1.5 0 0 1-3 0ZM16.5 20.25a1.5 1.5 0 1 1 3 0 1.5 1.5 0 0 1-3 0Z"})})})]})]},`${e.__typename??"item"}-${e.id}`)})})]})}}};function rE(e){let t,{attr:n,subdomain:o,onBlur:a,path:s,block:d,blockTable:c,BlockComponent:u,dataContext:p,editorContext:h={}}=e,{dataProvider:g,actions:x={},t:y,componentData:b,slots:v}=p,{eId:w,type:C,params:T,enableFadeIn:E,embeddedStyle:I,rwdMode:A,TextTag:P,text:L,src:B,href:O,style:D,mobileStyle:R={},tabletStyle:z={},id:W,className:H,name:U,defaultValue:V,placeholder:J,inputType:G,action:Y,graphqlQuery:Z,graphqlEndpoint:X,arrayKey:Q}=n,{isEdit:ee}=h,et=E&&!ee,ei=(0,f.normalizeStyle)(D),eo=(0,f.normalizeStyle)(R),el=(0,f.normalizeStyle)(z),ea={};if(T)try{let e=JSON.parse(T);e._responsive&&"object"==typeof e._responsive&&(ea=e._responsive)}catch(e){console.warn("Failed to parse responsive attributes from params:",e)}let es={embeddedStyle:I,mobileStyle:eo,tabletStyle:el,style:ei,enableFadeIn:et,rwdMode:A,id:W,className:H,...ea},ed=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return ee?{...e,"data-element-type":C,"data-rwd-mode":A||"all"}:Object.fromEntries(Object.entries(e).filter(e=>{let[t]=e;return!t.startsWith("data-element-type")&&!t.startsWith("data-rwd-mode")}))};switch(C){case"list":t=e=>(e=>{let{editorContext:t,text:i,params:n,styleParams:o,isEdit:l,editorProps:a,getFilteredEditorProps:s}=e,d={...JSON.parse(n||"{}")},c=s?s(a):a;return(0,r.jsx)(N.Div,{...o,editorProps:c,editorContext:t,children:(0,r.jsx)(M,{isEdit:l,children:(0,r.jsx)(e9,{...d,text:i,editorContext:t})})})})({editorContext:h,text:L,params:T,styleParams:es,isEdit:ee,...e});break;case"siteUrl":t=()=>(e=>{let{params:t,styleParams:i}=e,n={...JSON.parse(t||"{}")};return(0,r.jsx)(to,{...n,...i})})({params:T,styleParams:es});break;case"kaik.carousel":t=e=>F({params:T,styleParams:es,isEdit:ee,editorContext:h,block:d,blockTable:c,BlockComponent:u,path:s,t:y,subdomain:o,actions:x,dataProvider:g,componentData:b,...e});break;case"kaik.progressBar":t=e=>tt({params:T,styleParams:es,replaceObjectValues:$,componentData:b,editorContext:h,isEdit:ee,...e});break;case"kaik.rating":t=e=>ti({params:T,styleParams:es,replaceObjectValues:$,componentData:b,isEdit:ee,editorContext:h,t:y,...e});break;case"backToTop":t=()=>(e=>{let{editorContext:t,src:i,text:n,params:o,styleParams:l,isEdit:a}=e,s={...JSON.parse(o||"{}")};return(0,r.jsx)(m,{src:i,...s,...l,text:n,isEdit:a,editorContext:t})})({editorContext:h,src:B,text:L,params:T,styleParams:es,isEdit:ee});break;case"countdown":t=()=>(e=>{let{editorContext:t,params:i,styleParams:n}=e,o={...JSON.parse(i||"{}")};return(0,r.jsx)(q,{...o,...n,editorContext:t})})({editorContext:h,params:T,styleParams:es});break;case"div":t=function(e){let{children:t,editorProps:i,...n}=e,o={...JSON.parse(T||"{}")},l=_({strTemplate:O||"",data:b??{}});return(0,r.jsx)(N.Div,{src:B,...o,linkProps:{href:l,openNewTab:o.openNewTab},editorProps:ed(i),...es,...n,editorContext:h,children:t})};break;case"grid":t=function(e){let{children:t,editorProps:i,...n}=e,o={...JSON.parse(T||"{}")};return(0,r.jsx)(N.Div,{...o,editorProps:ed(i),...es,...n,editorContext:h,children:t})};break;case"gridColumn":t=e=>(e=>{let{block:t,blockTable:i,styleParams:n,editorContext:o,getFilteredEditorProps:l,children:a,editorProps:s,params:d,href:c,...u}=e,p={...JSON.parse(d||"{}")},h=t.nestedItems&&t.nestedItems.length>0&&t.nestedItems.some(e=>{let t=e?.parent;if(!t)return!1;let r=i[t];if(!r)return!1;let n=r?.style?.width;return!!n&&"string"==typeof n&&(n.includes("px")||n.includes("rem")||n.includes("em")||n.includes("vw")||n.includes("vh")||n.includes("pt"))}),m=(0,f.hasLayoutProperties)(n?.style),g=(0,f.hasLayoutProperties)(n?.mobileStyle),x=(0,f.hasLayoutProperties)(n?.tabletStyle),y=n?.style?.width&&"fit-content"!==n.style.width||n?.mobileStyle?.width&&"fit-content"!==n.mobileStyle.width||n?.tabletStyle?.width&&"fit-content"!==n.tabletStyle.width,b={...n};if(h&&!y){let e={...n?.style},t={...n?.mobileStyle},r={...n?.tabletStyle};delete e.flex,delete t.flex,delete r.flex,e.width||(e.width="fit-content"),t.width||(t.width="fit-content"),r.width||(r.width="fit-content"),m&&(e.dis
597play="flex"),g&&(t.display="flex"),x&&(r.display="flex"),b={...n,style:e,mobileStyle:t,tabletStyle:r}}else{let e={...n?.style},t={...n?.mobileStyle},r={...n?.tabletStyle};y&&(delete e.flex,delete t.flex,delete r.flex),m&&e&&(e.display="flex"),g&&t&&(t.display="flex"),x&&r&&(r.display="flex"),b={...n,style:e,mobileStyle:t,tabletStyle:r}}return(0,r.jsx)(N.Div,{...p,editorProps:l(s),...b,...u,linkProps:{href:c||"",openNewTab:p.openNewTab},editorContext:o,children:a})})({block:d,blockTable:c,styleParams:es,editorContext:h,getFilteredEditorProps:ed,params:T,href:_({strTemplate:O||"",data:b??{}}),...e});break;case"form":t=e=>(e=>{let{subdomain:t,src:n,params:o,styleParams:l,editorContext:a,getFilteredEditorProps:s,children:d,editorProps:c,...u}=e,[p,f]=(0,i.useState)(!1),[h,m]=(0,i.useState)(!1),g={...JSON.parse(o||"{}")},x=async e=>{try{e.preventDefault(),m(!0);let r=new FormData(e.target),i=Object.fromEntries(r).email,n="string"==typeof i?i.trim():"";if(!n)return void f(!1);let o=await eA.request(eb,{subdomain:t,email:n});f(!!o?.createLead?.success)}catch(e){console.warn(e)}finally{m(!1)}};return(0,r.jsx)(N.Div,{src:n,...g,editorProps:s(c),...l,...u,editorContext:a,children:(0,r.jsx)(S,{isSubmitted:p,isSubmitting:h,children:(0,r.jsx)("form",{method:"post",onSubmit:x,style:{height:"100%",width:"100%"},children:d})})})})({subdomain:o,src:B,params:T,styleParams:es,editorContext:h,getFilteredEditorProps:ed,...e});break;case"expandableDiv":t=e=>(e=>{let{styleParams:t,isEdit:i,getFilteredEditorProps:n,children:o,editorProps:l,...a}=e;return(0,r.jsx)(en,{editorProps:n(l),...t,...a,isEdit:i,children:o})})({styleParams:es,isEdit:ee,getFilteredEditorProps:ed,...e});break;case"input":t=e=>(e=>{let{name:t,defaultValue:i,placeholder:n,inputType:o,styleParams:l}=e,{isSubmitted:a}=k();return a?null:(0,r.jsx)(eQ,{name:t,defaultValue:i,placeholder:n,inputType:o,inputAttr:{required:!0},...l})})({name:U,defaultValue:V,placeholder:J,inputType:G,styleParams:es,...e});break;case"button":t=e=>(e=>{let{editorContext:t,action:i,actions:n={},text:o,href:l,componentData:a,params:s,styleParams:d,getFilteredEditorProps:c,children:u,editorProps:p,...f}=e,{isSubmitted:h,isSubmitting:m,isInsideForm:g}=k(),x={...JSON.parse(s||"{}")},y=a??{},b={href:_({strTemplate:l||"",data:y}),openNewTab:!!x.openNewTab};return(0,r.jsx)(j,{action:i,linkProps:b,isSubmitting:m,isSubmitted:h,isInsideForm:g,submitSuccessText:x.submitSuccessText,onClick:n&&void 0!==i?n[i]:void 0,text:_({strTemplate:o||"",data:y}),editorProps:c(p),editorContext:t,...d,...f,children:u})})({editorContext:h,action:Y,actions:x,text:L,href:O,componentData:b,params:T,styleParams:es,getFilteredEditorProps:ed,...e});break;case"text":t=e=>(e=>{let{onBlur:t,attr:i,editorContext:n,TextTag:o,text:l,href:a,componentData:s,params:d,styleParams:c,getFilteredEditorProps:u,children:p,editorProps:f,...h}=e,m={...JSON.parse(d||"{}")},g=s??{};return(0,r.jsx)(th,{onBlur:e=>t({...i,text:e}),editorContext:n,TextTag:o,text:_({strTemplate:l||"",data:g}),_responsiveText:m._responsiveText,linkProps:{href:_({strTemplate:a||"",data:g}),openNewTab:m.openNewTab},editorProps:u(f),...c,...h,children:p})})({onBlur:a,attr:n,editorContext:h,TextTag:P,text:L,href:O,componentData:b,params:T,styleParams:es,getFilteredEditorProps:ed,...e});break;case"textCountdown":t=e=>(e=>{let{isEdit:t,params:i,componentData:n,styleParams:o,getFilteredEditorProps:l,editorProps:a,...s}=e,d={...JSON.parse(i||"{}")};return(0,r.jsx)(td,{isEdit:t,endedAt:_({strTemplate:d.endedAt,data:n??{}}),prefix:d.prefix,suffix:d.suffix,language:d.language,showUnits:d.showUnits,editorProps:l(a),...o,...s})})({isEdit:ee,params:T,componentData:b,styleParams:es,getFilteredEditorProps:ed,...e});break;case"icon":t=e=>(e=>{let{params:t,styleParams:i,isEdit:n,href:o,componentData:l,editorProps:a,getFilteredEditorProps:s}=e,d={...JSON.parse(t||"{}")};return(0,r.jsx)(ez,{icon:d.icon,isEdit:n,...i,linkProps:{href:_({strTemplate:o||"",data:l??{}}),openNewTab:d.openNewTab},editorProps:s?s(a):a})})({params:T,styleParams:es,isEdit:ee,href:O,componentData:b,getFilteredEditorProps:ed,...e});break;case"video":t=e=>(e=>{let{editorContext:t,params:i,styleParams:n,getFilteredEditorProps:o,children:l,editorProps:a,...s}=e,d={...JSON.parse(i||"{}")};return(0,r.jsx)(tj,{editorContext:t,editorProps:o(a),...d,...n,...s,children:l})})({editorContext:h,params:T,styleParams:es,getFilteredEditorProps:ed,...e});break;case"image":t=e=>(e=>{let{editorContext:t,src:i,text:n,href:o,componentData:l,params:a,styleParams:s,getFilteredEditorProps:d,children:c,editorProps:u,...p}=e,f={...JSON.parse(a||"{}")},h=l??{};return(0,r.jsx)(eZ,{editorContext:t,src:_({strTemplate:i||"",data:h}),text:_({strTemplate:n||"",data:h}),linkProps:{href:_({strTemplate:o||"",data:h}),openNewTab:f.openNewTab},editorProps:d(u),...s,...p,children:c})})({editorContext:h,src:B,text:L,href:O,componentData:b,params:T,styleParams:es,getFilteredEditorProps:ed,...e});break;case"link":t=e=>(e=>{let{params:t,styleParams:i,isEdit:n,href:o,componentData:l,getFilteredEditorProps:a,children:s,editorProps:d,...c}=e,u={...JSON.parse(t||"{}")};return(0,r.jsx)(e2,{href:_({strTemplate:o||"",data:l??{}}),editorProps:a(d),...i,...c,openNewTab:u.openNewTab,isEdit:n,children:s})})({params:T,styleParams:es,isEdit:ee,href:O,componentData:b,getFilteredEditorProps:ed,...e});break;case"dataProvider":t=e=>K({eId:w,graphqlQuery:Z,graphqlEndpoint:X,arrayKey:Q,params:T,src:B,styleParams:es,isEdit:ee,editorContext:h,block:d,blockTable:c,BlockComponent:u,path:s,subdomain:o,t:y,actions:x,dataProvider:g,getFilteredEditorProps:ed,...e});break;case"3rdParty.cal":t=()=>(0,l.default)({styleParams:es,isEdit:ee,params:T,editorContext:h});break;case"embedHtml":case"embedHtmlIframe":t=e=>(e=>{let{editorContext:t,params:i,styleParams:n,attr:o,type:l,shouldEnableFadeIn:a,rwdMode:s,getFilteredEditorProps:d,children:c,editorProps:u,...p}=e,f=i?JSON.parse(i):{},h=f.htmlContent||o.embedHtmlContent||"",m=f.iframeUrl||"",g=f.iframeHeight||void 0,x="iframe"===f.renderMode||"sanitized"===f.renderMode?f.renderMode:"embedHtmlIframe"===l?"iframe":"sanitized";return(0,r.jsx)(er,{editorContext:t,editorProps:d(u),...n,embedHtmlContent:h,iframeUrl:m,iframeHeight:g,embedHtmlMode:x,enableFadeIn:a,rwdMode:s,...p,children:c})})({editorContext:h,params:T,styleParams:es,attr:n,type:C,shouldEnableFadeIn:et,rwdMode:A,getFilteredEditorProps:ed,...e});break;default:{let e=tV[C];if(e)t=e({componentData:b,params:T,styleParams:es,style:D,isEdit:ee,editorContext:h,getFilteredEditorProps:ed,t:y,actions:x});else{let e=r_[C];t=e?e({componentData:b,params:T,styleParams:es,style:D,isEdit:ee,editorContext:h,getFilteredEditorProps:ed,t:y,actions:x,slots:v}):null}}}return t}e.s(["ENDPOINT",0,"https://kaik.page","generateComponent",0,rE],818233);let rI=function(e){let{children:t,id:i,style:n}=e;return(0,r.jsx)("div",{id:i,style:{position:"relative",width:"100%",display:"flex",alignItems:"center",justifyContent:"flex-start",flexDirection:"column",marginLeft:"auto",marginRight:"auto",...n},children:t})};e.s(["default",0,rI],19728);
597let rN={query_courses:ev,query_posts:ew,query_sessions:ej,query_lecturers:eC,query_membership_plans:ek,query_digital_downloads:eS},rA=function(e,t,r){if(!e.startsWith("query_"))return e;{let i=rN[e];return i?i({...r}).replace("{{subdomain}}",t):(console.error(`Query for "${e}" is undefined`),e)}};function rP(e){return(e||[]).filter(e=>"dataProvider"===e.type&&e.graphqlEndpoint&&e.graphqlQuery)}function rM(e){return`${e.eId}_${e.graphqlQuery}_${e.graphqlEndpoint}`}function rL(e,t,r){let i=Array.isArray(t)&&t.length>0,n=i?t.filter(e=>"string"==typeof e||"number"==typeof e&&Number.isFinite(e)).map(String):[],o=i?{id:{in:n}}:{};return!0===r&&"query_courses"===e&&n.length>0&&(o.includeHidden=!0),o}function rB(e,t){let r={};try{r=JSON.parse(e.params||"{}")}catch(t){console.error("Failed to parse params:",e.params,t),r={}}if(e.graphqlQuery.startsWith("query_")){let i=rL(e.graphqlQuery,r.displayItemIds,r.includeHiddenItems),n=Object.keys(i).length>0?{filter:i}:{};return rA(e.graphqlQuery,t,{...e.graphqlVariables,...n})}return e$(e.graphqlQuery)}function rO(e,t){return t.reduce((t,r,i)=>{let n=e[i],o=rM(n);if("fulfilled"===r.status){let e=r.value;if("query_sessions"===n.graphqlQuery){let r={sessions:{nodes:[...t?.sessions?.nodes||[],...e?.sessions?.nodes||[],...e?.passSessions?.nodes||[]]}};return{...t,[o]:r}}return{...t,[o]:e}}return t},{})}e.s(["buildDataProviderFilter",0,rL,"buildDataProviderQuery",0,rB,"dataProviderKey",0,rM,"getGraphqlProviders",0,rP,"reduceDataProviderResults",0,rO],627164);var rD=e.i(550753);let rR="cdn.tailwindcss.com",rz=[rR,"cdn.jsdelivr.net","cdnjs.cloudflare.com","unpkg.com","fonts.googleapis.com","fonts.gstatic.com","www.googletagmanager.com","www.google-analytics.com","cdn.segment.com","js.hs-scripts.com","js.hs-analytics.net","kit.fontawesome.com","use.fontawesome.com"];function rF(e,t){return e===t||e.endsWith("."+t)}function rW(e){if(!e||"string"!=typeof e)return!1;try{let t=new URL(e);if("https:"!==t.protocol)return console.warn(`[ScriptLoader] Blocked non-HTTPS script: ${e}`),!1;let r=rz.some(e=>rF(t.hostname,e));return r||console.warn(`[ScriptLoader] Blocked script from untrusted domain: ${e}`),r}catch(t){return console.warn(`[ScriptLoader] Invalid script URL: ${e}`),!1}}function rH(e){return e.replace(/</g,"<").replace(/>/g,">").replace(/"/g,'"').replace(/'/g,"'").replace(/'/g,"'").replace(///g,"/").replace(/&/g,"&")}function rq(e){if(!e||"string"!=typeof e)return[];let t=[],r=rY(e),i=0,n=e.length;for(;i<n;){let n=r.indexOf("<script",i);if(-1===n)break;let o=n+7,l=e[o];if(void 0!==l&&/\w/.test(l)){i=o;continue}let a=e.indexOf(">",o);if(-1===a)break;let s=e.slice(o,a);i=a+1;let d=s.match(/\ssrc=["']([^"']+)["']/i);d?.[1]&&t.push(rH(d[1]))}return t}function rU(e){if(!e||"string"!=typeof e)return!1;try{let{hostname:t}=new URL(e,"https://relative.invalid");return rF(t,rR)}catch{return!1}}function rV(e){return!!e&&rq(e).some(rU)}async function rJ(e,t){let r={loadedTailwind:!1,loadedScripts:[]},i=rq(e).filter(rW);if(0===i.length)return r;for(let e of i)try{await function(e,t){return new Promise((r,i)=>{let n=t||document;if(n.querySelector(`script[src="${e}"]`))return void r();let o=n.createElement("script");o.src=e,o.async=!1,o.onload=()=>{console.log(`[ScriptLoader] Loaded: ${e}`),r()},o.onerror=()=>{console.error(`[ScriptLoader] Failed to load: ${e}`),i(Error(`Failed to load script: ${e}`))},n.head.appendChild(o)})}(e,t),r.loadedScripts.push(e),rU(e)&&(r.loadedTailwind=!0)}catch(e){console.error(e)}return r}function rG(e){return void 0===e||">"===e||"/"===e||/\s/.test(e)}function rY(e){let t="";for(let r=0;r<e.length;r++){let i=e.charCodeAt(r);t+=i>=65&&i<=90?String.fromCharCode(i+32):e[r]}return t}function rZ(e){return e&&"string"==typeof e?(0,rD.engineSanitizeHeadFragment)(e):""}function rK(e){if(!e||"string"!=typeof e)return[];let t=[],r=rY(e),i=0,n=e.length;for(;i<n;){let n=r.indexOf("<link",i);if(-1===n)break;let o=e.indexOf(">",n);if(-1===o)break;let l=e.slice(n+5,o);i=o+1;let a=l.match(/href=["']([^"']+)["']/i),s=a?.[1]?rH(a[1]):"",d=l.match(/rel=["']([^"']+)["']/i),c=d?.[1]||"",u=l.match(/crossorigin(?:=["']([^"']*)["'])?/i),p=u?u[1]||"":void 0;
597s&&t.push({href:s,rel:c,crossorigin:p})}return t}function rX(e,t){let r=rK(e),i=t||document;r.forEach(e=>{let{href:t,rel:r,crossorigin:n}=e;if(i.querySelector(`link[href="${t}"]`))return;let o=i.createElement("link");o.href=t,o.rel=r,void 0!==n&&(o.crossOrigin=n||"anonymous"),i.head.appendChild(o),console.log(`[ScriptLoader] Loaded link: ${t}`)})}function rQ(e){let{render:t,children:i}=e;return(0,r.jsx)(r.Fragment,{children:t({children:i})})}function r0(e){let{block:t,blockTable:i,path:n,actions:o,t:l,subdomain:a,isCopied:s,previewMode:d="DESKTOP",dataProvider:c,componentData:u,slots:p}=e;if(!t)return null;let{parent:f,nestedItems:h=[]}=t,m=i[f];if(!m)return null;let g=rE({attr:m,blockTable:i,block:t,path:n,subdomain:a,BlockComponent:r0,onBlur:()=>void 0,dataContext:{componentData:u,dataProvider:c,actions:o,t:l,slots:p},editorContext:{isEdit:!1,previewMode:d}});if(!g)return null;let x=s?`${t.parent}_${Math.random()}`:`${t.parent}_${m.type??""}`,y=h.map((e,t)=>!!e&&(0,r.jsx)(r0,{block:e,blockTable:i,path:n.concat(["nestedItems",t.toString()]),isCopied:!1,actions:o,subdomain:a,t:l,previewMode:d,dataProvider:c,componentData:u,slots:p},e.parent));return(0,r.jsx)(rQ,{render:g,children:y},x)}e.s(["containsTailwindCdn",0,rV,"extractLinkTags",0,rK,"extractScriptSrcs",0,rq,"isAllowedScriptSrc",0,rW,"isTailwindCdnScript",0,rU,"loadLinksFromHtml",0,rX,"loadScriptsFromHtml",0,rJ,"removeLinkTags",0,function(e){if(!e||"string"!=typeof e)return e;let t=rY(e),r="",i=0,n=e.length;for(;i<n;){let n=t.indexOf("<link",i);if(-1===n){r+=e.slice(i);break}r+=e.slice(i,n);let o=e.indexOf(">",n);if(-1===o){r+=e.slice(n);break}i=o+1}return r},"removeScriptTags",0,function(e){let t;if(!e||"string"!=typeof e)return e;let r=e,i=0;do t=r,r=function(e){let t=rY(e),r=e.length,i="",n=0;for(;n<r;){if("<"===e[n]){if(t.startsWith("<script",n)&&rG(t[n+7])){let i=e.indexOf(">",n);if(-1===i){n=r;break}if("/"===e[i-1]){n=i+1;continue}let o=t.indexOf("</script",i+1);if(-1===o){n=r;break}let l=e.indexOf(">",o);n=-1===l?r:l+1;continue}if(t.startsWith("</script",n)&&rG(t[n+8])){let t=e.indexOf(">",n);n=-1===t?r:t+1;continue}}i+=e[n],n++}return i}(r),i++;while(r!==t&&i<25)return r!==t&&(r=r.replace(/</g,"")),r},"sanitizeHeadFragment",0,rZ],535949),e.s(["RenderEngine",0,function(e){let{data:t,replaceHead:o=!1,previewMode:l="DESKTOP",t:a,componentData:s,slots:d,initialDataProvider:c}=e,{pageData:{blocks:u,elements:p,title:f,description:h,head:m,subdomain:g=""},actions:x}=t||{},y=!!c&&Object.keys(c).length>0,[b,v]=(0,i.useState)({}),w=y?c:b,[j,C]=(0,i.useState)(!1),k=m?.maxWidth?.trim()||void 0,S=(0,i.useMemo)(()=>rV(m?.linkTags||"")||rV(m?.styleTags||""),[m?.linkTags,m?.styleTags]),T=(0,i.useMemo)(()=>(p||[]).reduce((e,t)=>({...e,[t.eId]:t}),{}),[p]),$=(0,i.useCallback)(()=>(u||[]).map((e,t)=>(0,r.jsx)(r0,{block:e,blockTable:T,path:[t.toString()],actions:x,dataProvider:w,componentData:s,slots:d,isCopied:!1,subdomain:g,previewMode:l,t:a},e.parent)),[u,T,x,w,s,d,g,l,a]),_=(0,i.useCallback)(()=>(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("title",{children:f||"Page Builder"}),(0,r.jsx)("meta",{name:"description",content:h})]}),[h,f]);(0,i.useEffect)(()=>{S&&C(!1);let e=!1,t=async()=>{m?.linkTags&&rX(m.linkTags),m?.styleTags&&rX(m.styleTags);try{m?.linkTags&&await rJ(m.linkTags),m?.styleTags&&await rJ(m.styleTags)}catch(e){console.error("[Renderer] Failed to load head scripts:",e)}S&&!e&&await new Promise(e=>setTimeout(e,150)),e||C(!0)},r=requestAnimationFrame(()=>{t()});return()=>{e=!0,cancelAnimationFrame(r)}},[m?.styleTags,m?.linkTags,S]);let E=(0,i.useCallback)(()=>{if(!m)return null;let e=m.linkTags?rZ(m.linkTags):"",t=m.styleTags?rZ(m.styleTags):"";return(0,r.jsxs)(r.Fragment,{children:[e&&(0,n.default)(e),t&&(0,n.default)(t)]})},[m]),I=(0,i.useMemo)(()=>rP(p),[p]),N=(0,i.useMemo)(()=>I.map(e=>rB(e,g)),[I,g]),A=(0,i.useCallback)(async()=>{if(!N?.length)return;let e=N.map((e,t)=>{let r=I[t];return eN(r?.graphqlEndpoint).request(e).catch(e=>{console.error("GraphQL query failed:",e)})});v(rO(I,await Promise.allSettled(e)))},[N,I]);if((0,i.useEffect)(()=>{y||A()},[A,y]),!p||!u)return null;let P=!S||j;return(0,r.jsxs)(r.Fragment,{children:[o&&_(),(0,r.jsx)("link",{rel:"stylesheet",href:"https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.3.0/css/all.min.css"},"font-awesome"),S&&(0,r.jsx)("style",{dangerouslySetInnerHTML:{__html:` 598 .tailwind-content-wrapper { 599 opacity: 0; 600 transition: opacity 0.15s ease-in; 601 width: 100%; 602 } 603 .tailwind-content-wrapper.visible { 604 opacity: 1; 605 } 606 `}},"tailwind-loading-transition"),E(),(0,r.jsx)("div",{style:{width:"100%",maxWidth:k,backgroundColor:`${m?.backgroundColor??"white"}`,margin:"0 auto"}
606,children:(0,r.jsx)(rI,{id:"page-builder-container",children:S?(0,r.jsx)("div",{className:`tailwind-content-wrapper ${P?"visible":""}`,children:$()}):$()})})]})}],869253)},732377,429694,554861,841115,378883,985384,949820,858574,796080,82891,659254,856717,447814,596479,e=>{"use strict";var t=e.i(304886),r=e.i(160183),i=e.i(85684),n=e.i(910653),o=e.i(499791);let l=function(){let e=r.default.useRef(null),[t,i]=r.default.useState(!1);return r.default.useEffect(()=>{if("u"<typeof IntersectionObserver)return void i(!0);let t=new IntersectionObserver(r=>{e&&e.current&&r[0].isIntersecting&&(setTimeout(()=>i(!0),300),t.unobserve(e.current))});return e&&e.current&&t.observe(e&&e.current),()=>{e&&e.current&&t.unobserve(e.current)}},[]),{domRef:e,fadeInStyle:{transition:"all .8s ease-in",opacity:+!!t}}};function a(e){let{step:t="card",enableDrag:i=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=(0,r.useCallback)(()=>{let r=e.current;if(!r)return 0;if("number"==typeof t)return t;let i=r.firstElementChild;if(!i)return Math.round(.9*r.clientWidth);let n=parseFloat(getComputedStyle(r).columnGap||"0")||0;return i.offsetWidth+n},[e,t]),o=(0,r.useCallback)(()=>{let t=e.current;t&&t.scrollTo({left:t.scrollLeft+n(),behavior:"smooth"})},[e,n]),l=(0,r.useCallback)(()=>{let t=e.current;t&&t.scrollTo({left:t.scrollLeft-n(),behavior:"smooth"})},[e,n]),a=(0,r.useRef)({startX:0,startScroll:0,dragging:!1,moved:!1}),s=(0,r.useRef)(!1);return{slideLeft:l,slideRight:o,dragHandlers:i?{onMouseDown:t=>{e.current&&(a.current={startX:t.clientX,startScroll:e.current.scrollLeft,dragging:!0,moved:!1})},onMouseMove:t=>{let r=a.current;if(!r.dragging||!e.current)return;let i=t.clientX-r.startX;Math.abs(i)>5&&(r.moved=!0),e.current.scrollLeft=r.startScroll-i},onMouseUp:()=>{a.current.moved&&(s.current=!0),a.current.dragging=!1},onMouseLeave:()=>{a.current.dragging=!1,a.current.moved=!1},onClickCapture:e=>{s.current&&(e.preventDefault(),e.stopPropagation(),s.current=!1)}}:{}}}function s(e){return e<=767?"mobile":e>=768&&e<=991?"tablet":"desktop"}e.s(["default",0,l],429694),e.s(["useHorizontalScroll",0,a],554861);let d=function(e){let{baseStyle:t,mobileStyle:i,tabletStyle:n,isEditMode:o=!1}=e,[l,a]=(0,r.useState)("desktop");return(0,r.useEffect)(()=>{let e=s(window.innerWidth);e!==l&&a(e);let t=()=>{a(s(window.innerWidth))};return window.addEventListener("resize",t),()=>window.removeEventListener("resize",t)},[]),(0,r.useMemo)(()=>{let e={...t};return o||("mobile"===l&&i?e={...e,...i}:"tablet"===l&&n&&(e={...e,...n})),e},[t,i,n,l,o])};e.s(["default",0,d],841115);let c={backgroundPosition:"center",backgroundSize:"cover",backgroundColor:"transparent"};e.s(["default",0,c],378883);let u={position:"relative",marginLeft:"0px",marginRight:"0px",marginTop:"0px",marginBottom:"0px",paddingLeft:"0px",paddingRight:"0px",paddingTop:"0px",paddingBottom:"0px",height:"auto",width:"100%",display:"flex",alignItems:"center",justifyContent:"center",flexWrap:"nowrap",borderRadius:"0px",borderWidth:"0px",borderColor:"#fff",borderStyle:"solid",color:"#000",fontSize:"1rem",fontWeight:"normal",textAlign:"center",objectFit:"cover",objectPosition:"center"};e.s(["default",0,u],985384);let p={flexWrap:"wrap"},f={...u,...c};e.s(["default",0,f,"mobileDivStyle",0,p],949820);let h=e=>e?Object.entries(e).reduce((e,t)=>{let[r,i]=t;return null!=i&&(r.startsWith("border")&&""===i||"id"===r||"className"===r||""!==i)?{...e,[r]:i}:e},{}):{};function m(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return[...new Set(t.filter(Boolean).flatMap(e=>e.split(/\s+/)).filter(Boolean))].join(" ")}function g(e,t){return x(e,function(e){if(e&&e.isEdit&&e.previewMode)return e.previewMode;let t=window.innerWidth;return t<=767?"MOBILE":t<=991?"TABLET":"DESKTOP"}(t))}function x(e,t){let r,i;if(!e||"object"!=typeof e)return{id:void 0,className:""};switch(t){case"MOBILE":r=e.mobileId||e.id,i=m(e.className,e.mobileClassName??e.desktopClassName);break;case"TABLET":r=e.tabletId||e.id,i=m(e.className,e.tabletClassName??e.desktopClassName);break;default:r=e.desktopId||e.id,i=m(e.className,e.desktopClassName)}return{id:r,className:i}}function y(e,t){let[i,n]=(0,r.useState)(!1);return((0,r.useEffect)(()=>{n(!0)},[]),i||t?.isEdit)?g(e,t):x(e,"DESKTOP")}e.s(["default",0,h],858574),e.s(["getResponsiveAttributes",0,g,"useResponsiveAttributes",0,y],796080);let b=["http","https","mailto","tel"];function v(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(t)return;if(!e)return e;let r=e.trim();if(!r)return;let i=Array.from(r).filter(e=>{let t=e.charCodeAt(0);return t>32&&127!==t}).join(""),n=/^([a-z][a-z0-9+.-]*):/i.exec(i);if(!n||b.includes(n[1].toLowerCase()))return r}function w(e,t){let r=e.trim();return r.startsWith("&")?r.replace(/&/g,t):(r.startsWith(">")||r.startsWith("+")||r.startsWith("~"),`${t} ${r}`)}function j(e,t){let r=1,i=t+1,n=e.length;for(;i<n&&r>0;)"{"===e[i]?r++:"}"===e[i]&&r--,i++;return 0===r?i-1:-1}function C(e,t){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!e||"string"!=typeof e)return"";let i=k(e);if(!i)return"";let n=r?`:where(.${t})`:`.${t}`;if(!i.includes("{"))return`${n} { ${i} }`;let o=[],l=[],a=0,s=i.length;for(;a<s;){for(;a<s&&/\s/.test(i[a]);)a++;if(a>=s)break;if("@"===i[a]){l.length>0&&(o.push(`${n} { ${l.join(" ")} }`),l.length=0);let e=a,s=i.indexOf("{",a);if(-1===s)break;let d=i.slice(e,s).trim(),c=j(i,s);if(-1===c)break;let u=i.slice(s+1,c).trim(),p=C(`{ ${u} }`,t,r);o.push(`${d} { 607 ${p} 608}`),a=c+1;continue}let e=i.indexOf("{",a),d=i.indexOf(";",a),c=-1!==d;if(-1!==e&&(!c||e<d)){let t=i.slice(a,e),r=t.lastIndexOf(";");if(-1!==r){let s=t.slice(0,r+1).trim();s&&s.split(";
608").forEach(e=>{let t=e.trim();t&&l.push(t+";")});let d=t.slice(r+1).trim(),c=j(i,e);if(-1===c)break;let u=i.slice(e+1,c).trim();if(d&&u){l.length>0&&(o.push(`${n} { ${l.join(" ")} }`),l.length=0);let e=w(d,n);o.push(`${e} { ${u} }`)}a=c+1}else{let r=t.trim();l.length>0&&(o.push(`${n} { ${l.join(" ")} }`),l.length=0);let s=j(i,e);if(-1===s)break;let d=i.slice(e+1,s).trim();if(r&&d){let e=w(r,n);o.push(`${e} { ${d} }`)}a=s+1}}else if(c){let e=i.slice(a,d+1).trim();e&&l.push(e),a=d+1}else{let e=i.slice(a).trim();e&&l.push(e.endsWith(";")?e:e+";");break}}return l.length>0&&o.push(`${n} { ${l.join(" ")} }`),o.join("\n")}function k(e){if(!e||"string"!=typeof e)return"";let t=e.trim();return t=(t=(t=(t=(t=t.replace(/\r\n|\r|\n/g," ")).replace(/\s+/g," ")).replace(/(\d)\s+(px|em|rem|%|vh|vw|vmin|vmax|ch|ex|pt|pc|cm|mm|in|fr)\b/gi,"$1$2")).replace(/@import\s+[^;]+;?/gi,"")).replace(/@charset\s+[^;]+;?/gi,""),/^\s*\{/.test(t)&&(t=(t=t.replace(/^\s*\{\s*/,"")).replace(/\s*\}\s*$/,"")),(t=t.replace(/\{\s*\}/g,"")).trim()}function S(e,t){if(!e)return{};let r={};for(let[i,n]of Object.entries(e))t[i]!==n&&(r[i]=n);return r}e.s(["default",0,v,"getSafeHref",0,v],82891),e.s(["sanitizeEmbeddedCss",0,k,"scopeEmbeddedCss",0,C],659254);let T=["backgroundSize","backgroundPosition","backgroundColor","backgroundImage","backgroundRepeat","backgroundAttachment"],$=new Set(["position","top","right","bottom","left","zIndex","margin","marginTop","marginRight","marginBottom","marginLeft","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","width","height","minWidth","minHeight","maxWidth","maxHeight","display","flex","flexGrow","flexShrink","flexBasis","alignItems","justifyContent","flexDirection","flexWrap","transform","opacity","visibility","overflow","overflowX","overflowY","outline","outlineOffset","transition","cursor","pointerEvents"]);function _(e){if(!e)return"";let t=[];for(let[n,o]of Object.entries(e)){var r,i;if(null==o||n.startsWith("__"))continue;if("string"==typeof o){let e=o.trim();if(""===e||/^(px|em|rem|%|vh|vw|vmin|vmax|pt|ch|ex|pc|cm|mm|in|fr)$/i.test(e))continue}let e=n.replace(/([A-Z])/g,"-$1").toLowerCase(),l=(r=n,"number"==typeof(i=o)?new Set(["fontWeight","opacity","zIndex","lineHeight","flex","flexGrow","flexShrink","order"]).has(r)?String(i):`${i}px`:String(i));t.push(`${e}: ${l}`)}return t.join("; ")}e.s(["convertBackgroundToObjectStyles",0,function(e){if(!e)return{};let t={...e};return e.backgroundSize&&(t.objectFit=e.backgroundSize),e.backgroundPosition&&(t.objectPosition=e.backgroundPosition),T.forEach(e=>{delete t[e]}),t},"filterCssModuleDefaults",0,S,"generateRwdModeCss",0,function(e,t){if(!t||"all"===t)return"";let r=`.${e}`;return"mobile"===t?`@media only screen and (min-width: 768px) { ${r} { display: none !important; } }`:"tablet"===t?`@media only screen and (max-width: 767px) { ${r} { display: none !important; } } 609@media only screen and (min-width: 992px) { ${r} { display: none !important; } }`:"desktop"===t?`@media only screen and (max-width: 991px) { ${r} { display: none !important; } }`:""},"hasLayoutProperties",0,function(e){return!!e&&(!!e.flexDirection||!!e.justifyContent||!!e.alignItems||void 0!==e.gap)},"normalizeStyle",0,function(e){if(null!=e&&"object"==typeof e&&!Array.isArray(e))return e;if("string"==typeof e)try{let t=JSON.parse(e);if(null!=t&&"object"==typeof t&&!Array.isArray(t))return t}catch{}return{}},"separateStylesForCustomCssOverride",0,function(e){if(!e)return{inlineStyles:{},classStyles:{}};let t={},r={};for(let[i,n]of Object.entries(e))null!=n&&(i.startsWith("__")||($.has(i)?t[i]=n:r[i]=n));return{inlineStyles:t,classStyles:r}},"styleObjectToCssString",0,_],856717);var E=e.i(360114);let I={appearance:"none",border:"none",background:"transparent",padding:0,font:"inherit",color:"inherit"},N={zIndex:999,top:"50%",transform:"translateY(-50%)",width:32,height:32,cursor:"pointer",backgroundColor:"#1988FF",borderRadius:"100%",color:"#fff",display:"flex",alignItems:"center",justifyContent:"center"},A={...N,backgroundColor:"rgba(0,0,0,0.4)",border:"1px solid rgba(255,255,255,0.2)"},P={position:"relative",marginLeft:"0px",marginRight:"0px",marginTop:"0px",marginBottom:"0px",paddingLeft:"0px",paddingRight:"0px",paddingTop:"0px",paddingBottom:"0px",height:"auto",width:"100%",display:"flex",alignItems:"center",justifyContent:"center",flexWrap:"nowrap",borderRadius:"0px",borderWidth:"0px",borderColor:"#fff",borderStyle:"solid",color:"#000",fontSize:"1rem",fontWeight:"normal",textAlign:"center",objectFit:"cover",objectPosition:"center",backgroundPosition:"center",backgroundSize:"cover",backgroundColor:"transparent"},M=function(e){let{id:s,className:c,desktopId:u,tabletId:f,mobileId:m,desktopClassName:g,tabletClassName:x,mobileClassName:b,children:w,editorProps:{editorStyle:j,...k}={},enableFadeIn:T=!1,style:$,omitDefaultStyle:M,arrangement:L,arrowStyle:B="style1",arrowButtonStyle:O,editorContext:D={},src:R,enableMask:z,maskOpacity:F,enableParallelScroll:W,embeddedStyle:H,mobileStyle:q,tabletStyle:U,rwdMode:V,scrollMode:J,hideScrollbar:G,autoScrollEnabled:Y,autoScrollDurationSeconds:Z,arrowsEnabled:K,arrowPrevImage:X,arrowNextImage:Q,arrowShowDesktop:ee=!0,arrowShowMobile:et=!1,dotsEnabled:er,dotSize:ei,dotColor:en,dotActiveColor:eo,dotInactiveOpacity:el,linkProps:ea}=e,{domRef:es,fadeInStyle:ed}=l(),[ec,eu]=(0,r.useState)("all"),{isEdit:ep,previewMode:ef}=D,{isInsideLink:eh}=(0,o.useLinkContext)(),em=(0,r.useId)(),eg=(0,r.useMemo)(()=>`div-${em.replace(/:/g,"")}`,[em]),ex=y({id:s,className:c,desktopId:u,tabletId:f,mobileId:m,desktopClassName:g,tabletClassName:x,mobileClassName:b},D);(0,r.useEffect)(()=>{V&&eu(V)},[V]);let ey="horizontal"===J,eb=ey&&!!K&&!Y,ev=ey&&!!er&&!Y,ew="default"===O||"darkCircle"===O||"custom"===O?O:X||Q?"custom"
609:"default",ej="darkCircle"===ew?A:N,eC=(0,r.useMemo)(()=>"number"==typeof Z&&Number.isFinite(Z)?Math.max(1,Math.round(Z)):40,[Z]),ek=(0,r.useMemo)(()=>r.default.Children.toArray(w),[w]),eS=ey&&!!Y&&!ep&&ek.length>0,eT=ek.length,e$=function(e,t,i){let[n,o]=(0,r.useState)(0),l=(0,r.useRef)([]);return(0,r.useEffect)(()=>{if(!i)return;let t=e.current;if(!t||"u"<typeof IntersectionObserver)return;let r=Array.from(t.children).filter(e=>"STYLE"!==e.tagName);if(0===r.length)return;l.current=Array(r.length).fill(0);let n=new IntersectionObserver(e=>{e.forEach(e=>{let t=r.indexOf(e.target);-1!==t&&(l.current[t]=e.intersectionRatio)});let t=0,i=-1;l.current.forEach((e,r)=>{e>i&&(i=e,t=r)}),o(t)},{root:t,threshold:Array.from({length:21},(e,t)=>t/20)});return r.forEach(e=>n.observe(e)),()=>n.disconnect()},[e,t,i]),n}(es,eT,ev),e_=(0,r.useMemo)(()=>{if(!eS)return ek;let e=ek.map((e,i)=>{let n=r.default.isValidElement(e)?e.key??i:i,o=`__dup_${String(n)}`;return r.default.isValidElement(e)?r.default.cloneElement(e,{key:o}):(0,t.jsx)(r.default.Fragment,{children:e},o)});return ek.concat(e)},[ek,eS]);(0,r.useEffect)(()=>{if(!eS||!es?.current)return;let e=es.current,t=ek.length;if(t<=0)return;let r=()=>{let r=Array.from(e.children).filter(e=>"STYLE"!==e.tagName).slice(0,t);if(0===r.length)return;let i=Number.parseFloat(window.getComputedStyle(e).gap||"0px")||0,n=0;r.forEach(e=>{n+=e.getBoundingClientRect().width+i}),e.style.setProperty("--hsg-scroll-distance",`${Math.max(0,n)}px`)};requestAnimationFrame(()=>r());let i=()=>requestAnimationFrame(()=>r());window.addEventListener("resize",i);let n=null;return"u">typeof ResizeObserver&&((n=new ResizeObserver(()=>r())).observe(e),Array.from(e.children).filter(e=>"STYLE"!==e.tagName).forEach(e=>n?.observe(e))),()=>{window.removeEventListener("resize",i),n?.disconnect(),n=null}},[es,ek,eS]);let eE=(0,r.useMemo)(()=>{if(!R)return{};let e=`url("${i.utils.imageProxy(R,i.utils.MAX_PROXY_WIDTH)}")`,t=(F??30)/100;return{backgroundImage:z?`linear-gradient(rgba(0,0,0,${t}), rgba(0,0,0,${t})), ${e}`:e,backgroundRepeat:"no-repeat"}},[z,F,R]),eI=(0,r.useMemo)(()=>"horizontal"===L?{flexWrap:"nowrap",display:"flex",overflowX:"auto"}:"vertical"===L?{flexWrap:"wrap"}:{},[L]),eN=(0,r.useMemo)(()=>"horizontal"===L?` 610 .${eg} { 611 flex-wrap: nowrap !important; 612 display: flex !important; 613 overflow-x: auto; 614 } 615 .${eg} > div { 616 flex-shrink: 0; 617 width: auto; 618 } 619 @media (max-width: 767px) { 620 .${eg} { 621 flex-wrap: nowrap !important; 622 justify-content: flex-start !important; 623 } 624 } 625 `:ey?` 626 .${eg} { flex-wrap: nowrap !important; } 627 @media (max-width: 767px) { 628 .${eg} { flex-wrap: nowrap !important; justify-content: flex-start !important; } 629 } 630 `:"vertical"===L?`.${eg} { flex-wrap: wrap !important; }`:"",[L,ey,eg]),eA=ec?.toUpperCase()===ef,eP=(0,r.useMemo)(()=>{let e={...$,...T&&ed,...eE,...eI,position:$?.position==="sticky"?"sticky":"relative"},t={display:"all"===ec||eA?e.display||"flex":"none"},r=j?{...void 0!==j.zIndex&&null!==j.zIndex&&{zIndex:j.zIndex},outline:j.outline,outlineOffset:j.outlineOffset,transition:j.transition,...void 0!==j.opacity&&{opacity:j.opacity},...j.position&&!$?.position&&{position:j.position},...j.backgroundColor&&(!$?.backgroundColor||"transparent"===$.backgroundColor||"rgba(0,0,0,0)"===$.backgroundColor)&&{backgroundColor:j.backgroundColor},...j.border&&!$?.borderWidth&&{border:j.border},...j.borderRadius&&!$?.borderRadius&&{borderRadius:j.borderRadius},...$?.borderWidth&&{borderWidth:$.borderWidth},...$?.borderColor&&{borderColor:$.borderColor},...$?.borderRadius&&{borderRadius:$.borderRadius},...$?.borderStyle&&{borderStyle:$.borderStyle}}:{};if(ep){let i={...e,...r,...t};return"MOBILE"===ef&&q?(Object.assign(i,p,q),("flex"===e.display||"flex"===q.display)&&(i.display="flex")):"TABLET"===ef&&U?(Object.assign(i,U),("flex"===e.display||"flex"===U.display)&&(i.display="flex")):"flex"===e.display&&(i.display="flex"),i.position=$?.position==="sticky"?"sticky":"relative","all"===ec||eA||(i.display="none"),i}let i={};return"MOBILE"===ef&&q?Object.assign(i,p,q):"TABLET"===ef&&U&&Object.assign(i,U),{...e,...r,...i,position:$?.position==="sticky"?"sticky":"relative"}}
630,[eI,eE,ep,ef,j,T,ed,ec,q,eA,$,U]),eM=!!ex.className,eL=$?.width&&"100%"!==$.width,eB=$?.justifyContent,eO="string"==typeof eB&&["space-around","space-between","space-evenly"].includes(eB),eD=$?.flexDirection==="column"&&!eL&&!eO,eR=d({baseStyle:M||eM?h(eP):S(h(eP),P),mobileStyle:q||void 0,tabletStyle:U||void 0,isEditMode:ep}),ez=(0,r.useMemo)(()=>h(eR),[eR]),eF=(0,r.useMemo)(()=>{if(!ez||0===Object.keys(ez).length)return"";let e=_(ez);return e?eM?`:where(.${eg}) { ${e} }`:`.${eg} { ${e} }`:""},[ez,eg,eM]),eW=(0,r.useMemo)(()=>W?`.${eg} { background-attachment: fixed; }`:"",[W,eg]),eH=(0,r.useMemo)(()=>(function(e,t){if(!t||"all"===t)return"";let r=[];return"mobile"===t?r.push(`@media only screen and (min-width: 768px) { .${e} { display: none !important; } }`):"tablet"===t?(r.push(`@media only screen and (max-width: 767px) { .${e} { display: none !important; } }`),r.push(`@media only screen and (min-width: 992px) { .${e} { display: none !important; } }`)):"desktop"===t&&r.push(`@media only screen and (max-width: 991px) { .${e} { display: none !important; } }`),r.join("\n")})(eg,V),[eg,V]),eq=(0,r.useMemo)(()=>{let e=[];
630if(eM&&!M&&e.push(`:where(.${eg}) { 631 position: relative; 632 width: 100%; 633 display: flex; 634 align-items: center; 635 justify-content: center; 636 background-position: center; 637 background-size: cover; 638 } 639 @media (max-width: 767px) { 640 :where(.${eg}) { 641 flex-wrap: wrap; 642 background-attachment: scroll; 643 } 644 }`),eF&&e.push(eF),H){let t=C(H,eg,eM);t&&e.push(t)}if(ey&&e.push(ep?` 645 .${eg} { 646 scrollbar-width: thin; 647 } 648 .${eg}::-webkit-scrollbar { 649 height: 8px; 650 } 651 .${eg}::-webkit-scrollbar-thumb { 652 background: rgba(0, 0, 0, 0.25); 653 border-radius: 4px; 654 } 655 `:` 656 .${eg} { 657 -ms-overflow-style: none; 658 scrollbar-width: none; 659 } 660 .${eg}::-webkit-scrollbar { 661 width: 0px; 662 height: 0px; 663 display: none; 664 } 665 `),"always"===G)e.push(` 666 .${eg} { 667 scrollbar-width: none; 668 } 669 .${eg}::-webkit-scrollbar {
670 width: 0px; 671 display: none; 672 } 673 `);else if("hover"===G){let t="rgba(152, 154, 154, 0.5)";e.push(` 674 .${eg} { 675 scrollbar-width: thin; 676 scrollbar-color: transparent transparent; 677 } 678 .${eg}::-webkit-scrollbar { 679 width: 6px; 680 } 681 .${eg}::-webkit-scrollbar-track { 682 background: transparent; 683 } 684 .${eg}::-webkit-scrollbar-thumb { 685 background: transparent; 686 } 687 @media (hover: hover) { 688 .${eg}:hover { 689 scrollbar-color: ${t} transparent; 690 } 691 .${eg}:hover::-webkit-scrollbar-thumb { 692 background: ${t}; 693 border-radius: 3px; 694 } 695 } 696 `)}if(eS){let t=`${eg}-hsg-seamless-loop`;e.push(` 697 .${eg} { 698 --hsg-duration: ${eC}s; 699 overflow-x: hidden !important; 700 } 701 .${eg} > * { 702 flex-shrink: 0; 703 animation: ${t} var(--hsg-duration) linear infinite; 704 will-change: transform; 705 } 706 .${eg}:hover > * { 707 animation-play-state: paused !important; 708 } 709 @keyframes ${t} { 710 0% { 711 transform: translateX(0); 712 } 713 100% { 714 transform: translateX(calc(-1 * var(--hsg-scroll-distance, 0px))); 715 } 716 } 717 `)}return eM&&!M&&e.push(`@media (max-width: 767px) { 718 :where(.${eg}) { 719 width: 100%; 720 } 721 }`),eW&&e.push(eW),eN&&e.push(eN),!ep&&eH&&e.push(eH),e.join("\n")},[eF,eN,H,eM,G,ep,ey,M,eW,eH,eC,eg,eS]),eU=(0,r.useMemo)(()=>{let e=[eg,ex.className];return M||eM||e.unshift(E.default.div),e.filter(Boolean).join(" ")},[eM,M,ex.className,eg]),eV=ey&&!!K&&!Y&&!ep,{slideLeft:eJ,slideRight:eG,dragHandlers:eY}=a(es,{step:400,enableDrag:eV}),eZ=eb?`${eg}-hsg-arrow`:void 0,eK=ei??8,eX=en??"#fff",eQ=eo??eX,e0=el??.3,e1=eq?(0,t.jsx)("style",{dangerouslySetInnerHTML:{__html:eq}}):null,e2=eD?{"data-flex-col":""}:{},e5=eb?[`.${eg}-hsg-arrow { opacity: 0.4; transition: opacity 0.25s ease-in; }`,`@media (hover: hover) { 722 .${eg}-hsg-arrow { opacity: 0; } 723 .${eg}-hsg-wrap:hover .${eg}-hsg-arrow { opacity: 1; } 724 }`,!et?`@media (max-width: 767px) { .${eg}-hsg-arrow { display: none !important; } }`:"",!ee?`@media (min-width: 768px) { .${eg}-hsg-arrow { display: none !important; } }`:""].filter(Boolean).join("\n"):"",e4=ea?.href,e8=!!e4&&"#"!==e4&&!ep&&!eh,e6=e=>e8?(0,t.jsx)("a",{href:v(e4,ep),target:ea?.openNewTab?"_blank":"_self",rel:"noreferrer",style:{display:"block",textDecoration:"none",color:"inherit"},children:(0,t.jsx)(o.LinkProvider,{children:e})}):e;return e6("horizontal"===L||eb||ev?(0,t.jsxs)("div",{className:eb?`${E.default.divHorizontalWrapper} ${eg}-hsg-wrap`:E.default.divHorizontalWrapper,children:[(0,t.jsxs)("div",{id:ex.id,className:eU,ref:es,style:eV?{cursor:"grab"}:void 0,...k,...e2,...eY,children:[e_,e1]}),"horizontal"===L||eb?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(()=>"style2"===B?(0,t.jsx)(n.default,{onClick:eJ,dir:"left"}):"custom"===ew&&X?(0,t.jsx)("button",{type:"button","aria-label":"Previous",className:eZ,style:{appearance:"none",background:"none",border:"none",padding:0,position:"absolute",left:32,top:"50%",transform:"translateY(-50%)",zIndex:999,cursor:"pointer"},onClick:eJ,children:(0,t.jsx)("img",{src:X,alt:"prev",style:{width:40,height:40,objectFit:"contain",display:"block"}})}):(0,t.jsx)("button",{type:"button","aria-label":"Previous",className:eZ,style:{...I,...ej,left:32,position:"absolute"},onClick:eJ,children:(0,t.jsx)("span",{style:{width:"8px",color:"#fff"},children:(0,t.jsx)("i",{className:"fa fa-chevron-left"})})}),{}),(0,t.jsx)(()=>"style2"===B?(0,t.jsx)(n.default,{onClick:eG,dir:"right"}):"custom"===ew&&Q?(0,t.jsx)("button",{type:"button","aria-label":"Next",className:eZ,style:{appearance:"none",background:"none",border:"none",padding:0,position:"absolute",right:32,top:"50%",transform:"translateY(-50%)",zIndex:999,cursor:"pointer"},onClick:eG,children:(0,t.jsx)("img",{src:Q,alt:"next",style:{width:40,height:40,objectFit:"contain",display:"block"}})}):(0,t.jsx)("button",{type:"button","aria-label":"Next",className:eZ,style:{...I,...ej,right:32,position:"absolute"},onClick:eG,children:(0,t.jsx)("span",{style:{width:"8px",color:"#fff"},children:(0,t.jsx)("i",{className:"fa fa-chevron-right"})})}),{})]}):null,e5?(0,t.jsx)("style",{dangerouslySetInnerHTML:{__html:e5}}):null,ev&&eT>1?(0,t.jsx)("div",{style:{position:"absolute",bottom:12,left:0,right:0,display:"flex",justifyContent:"center",gap:8,zIndex:999},children:Array.from({length:eT}).map((e,r)=>(0,t.jsx)("button",{type:"button","aria-label":`Go to slide ${r+1}`,"aria-current":r===e$?"true":void 0,onClick:()=>(e=>{let t=es?.current;if(!t)return;let r=Array.from(t.children).filter(e=>"STYLE"!==e.tagName)[e];r&&t.scrollTo({left:r.offsetLeft,behavior:"smooth"})})(r),style:{...I,width:eK,height:eK,borderRadius:"50%",cursor:"pointer",background:r===e$?eQ:eX,opacity:r===e$?1:e0,boxShadow:"1px 1px 2px rgba(0,0,0,0.9)"}},r))}):null]}):(0,t.jsxs)("div",{id:ex.id,className:eU,ref:es,style:eV?{cursor:"grab"}:void 0,...k,...e2,...eY,children:[e_,e1]}))};e.s(["default",0,M],447814),e.s(["Div",0,M],596479),e.s(["default",0,function(e){let{params:r,isEdit:i,styleParams:n,editorContext:o}=e,l={...JSON.parse(r||"{}")};return(0,t.jsxs)(M,{...n,editorContext:o,children:[i&&!l.calLink?(0,t.jsx)("p",{style:{width:"100%",textAlign:"center"},children:"Click to setup"}):null,i&&(0,t.jsx)("div",{style:{position:"absolute",top:0,left:0,right:0,bottom:0,zIndex:999}}),!!l.calLink&&(0,t.jsx)("iframe",{src:l.calLink,width:"100%",height:"100%"})]})}],732377)}
724,189939,218555,688690,308650,e=>{"use strict";var t=e.i(304886),r=e.i(202914),i=e.i(186281),n=e.i(154826),o=e.i(499791);let l=e=>e.replace(/-([a-z])/g,(e,t)=>t.toUpperCase()),a=e=>{let t;if(!e)return{};let r=/([\w-]+)\s*:\s*([^;]+);?/g,i={};for(;null!==(t=r.exec(e));){let[,e,r]=t;i[l(e.trim())]=r.trim()}return i};e.s(["convertInlineCssToObject",0,a],218555);let s=e=>{if(!e)return!1;let t=-1;for(let r=0;r<e.length;r++){let i=e[r];if("<"===i)-1===t&&(t=r);else if(">"===i){if(-1!==t&&r>t+1)return!0;t=-1}}return!1},d=/<(?:address|article|aside|blockquote|details|div|dl|fieldset|figcaption|figure|footer|form|h[1-6]|header|hgroup|hr|li|main|menu|nav|ol|p|pre|section|table|ul)[\s/>]/i;e.s(["containsParagraphClosingHtml",0,e=>d.test(e),"convertPlainTextToHtml",0,e=>e?e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'").replace(/\n/g,"<br>"):"","isHtmlContent",0,s],688690);var c=e.i(550753),u=e.i(368600);function p(e){return e.replace(/&/g,"&").replace(/"/g,""").replace(/</g,"<").replace(/>/g,">")}let f=/<!doctype\s|<html[\s>]|<head[\s>]|<body[\s>]/i,h=["script","style","title","textarea","template"],m=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=r;for(;-1!==(i=e.indexOf(`<${t}`,i));){let r=e[i+t.length+1];if(">"===r||void 0===r||/\s/.test(r))return i;i+=t.length+1}return -1},g=/^\/?(?:html|head|body)(?=[\s/>])|^!doctype(?=\s)/,x=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"basic";if(!e)return"";let r=function(e){if(!f.test(e))return e;let t=function(e){let t=e.toLowerCase(),r=t.split(""),i=(e,t)=>{for(let i=e;i<t;i++)r[i]=" "},n=e=>{let i=e+1,n=null;for(;i<t.length;){let e=t[i];if(n)e===n?n=null:r[i]=" ";else if('"'===e||"'"===e)n=e;else if(">"===e)return i+1;i++}return t.length},o=0;e:for(;o<t.length;){if(t.startsWith("<!--",o)){let e=t.indexOf("-->",o+4);i(o+4,-1===e?t.length:e),o=-1===e?t.length:e+3;continue}for(let e of h)if(t.startsWith(`<${e}`,o)){let r=t[o+e.length+1];if(">"===r||"/"===r||r&&/\s/.test(r)){let r=n(o);if(r>=t.length){o=t.length;continue e}let l=t.indexOf(`</${e}`,r);i(r,-1===l?t.length:l),o=-1===l?t.length:l;continue e}}if("<"===t[o]&&/[a-z/!]/.test(t[o+1]??"")){o=n(o);continue}o++}return r.join("")}(e),r=m(t,"body");if(-1!==r){let i=t.indexOf(">",r);if(-1!==i){let r=t.lastIndexOf("</body"),n=r>i?r:e.length;return e.slice(i+1,n)}}let i=m(t,"head"),n=e,o=t;if(-1!==i){let t=o.indexOf("</head",i),r=-1===t?e.length:o.indexOf(">",t)+1;n=e.slice(0,i)+e.slice(r||e.length),o=o.slice(0,i)+o.slice(r||e.length)}var l=n,a=o;let s=[],d=0,c=0;for(;c<l.length;){if("<"===a[c]&&g.test(a.slice(c+1,c+10))){let e=a.indexOf(">",c);if(-1!==e){s.push(l.slice(d,c)),d=e+1,c=e+1;continue}}c++}return s.push(l.slice(d)),s.join("")}(e),i="basic"===t?r:r.replace(/<oembed\b([^>]*?)\/?>(\s*<\/oembed>)?/gi,(e,t)=>{let r=/\burl\s*=\s*(?:"([^"]*)"|'([^']*)')/i.exec(t),i=r?r[1]??r[2]??"":"",n=(0,u.resolveEmbedSrc)(i.replace(/"/g,'"').replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">").replace(/&/g,"&"));return n?`<iframe src="${p(n.src)}" title="${p(n.title)}" style="width:100%;aspect-ratio:16/9;border:0;display:block;" allow="autoplay; encrypted-media" allowfullscreen></iframe>`:""});return(0,c.engineSanitize)(i,t)};e.s(["sanitizeHtml",0,x],308650),e.s(["RichText",0,function(e){let l,{content:d,isEdit:c=!1,className:u,style:p}=e,{isInsideLink:f}=(0,o.useLinkContext)();if(!d)return null;l=s(d)?x(d):x(n.marked.parseInline(d));let h={replace:e=>{if("tag"!==e.type)return;let{attribs:r,children:n,name:o}=e;if("a"===o&&r?.href)return f?(0,t.jsx)("span",{className:r.class,style:{color:"inherit",textDecoration:"underline"},children:(0,i.domToReact)(n,h)}):(0,t.jsx)("a",{href:c?void 0:r.href,target:r.target||"_self",rel:r.rel||"noopener noreferrer",className:r.class,style:{color:"inherit",textDecoration:"underline",pointerEvents:c?"none":"auto",cursor:c?"text":"pointer"},onClick:c?e=>e.preventDefault():void 0,children:(0,i.domToReact)(n,h)});if("span"===o&&r?.style){let e=a(r.style);return(0,t.jsx)("span",{style:e,className:r.class,children:(0,i.domToReact)(n,h)})}if("strong"===o||"b"===o){let e=r?.style?a(r.style):void 0;return(0,t.jsx)("strong",{style:e,className:r?.class,children:(0,i.domToReact)(n,h)})}if("em"===o||"i"===o){let e=r?.style?a(r.style):void 0;return(0,t.jsx)("em",{style:e,className:r?.class,children:(0,i.domToReact)(n,h)})}return"script"===o&&null}};try{let e=(0,r.default)(l,h);if(!u&&!p)return(0,t.jsx)(t.Fragment,{children:e});return(0,t.jsx)("span",{className:u,style:p,children:e})}catch(e){return console.error("RichText HTML parsing error:",e),(0,t.jsx)("span",{className:u,style:p,children:d})}}],189939)},153632,e=>{e.v({arrow:"Style2Arrow-module__iSA9GW__arrow",arrowLeft:"Style2Arrow-module__iSA9GW__arrowLeft",arrowRight:"Style2Arrow-module__iSA9GW__arrowRight",icon:"Style2Arrow-module__iSA9GW__icon",iconContainer:"Style2Arrow-module__iSA9GW__iconContainer",iconContainerLeft:"Style2Arrow-module__iSA9GW__iconContainerLeft",iconContainerRight:"Style2Arrow-module__iSA9GW__iconContainerRight",triangle:"Style2Arrow-module__iSA9GW__triangle",triangleLeft:"Style2Arrow-module__iSA9GW__triangleLeft",triangleRight:"Style2Arrow-module__iSA9GW__triangleRight"})},910653,e=>{"use strict";var t=e.i(304886),r=e.i(153632);e.s(["default",0,function(e){let{dir:i,onClick:n}=e,o=[r.default.arrow,"left"===i?r.default.arrowLeft:r.default.arrowRight].join(" "),l=[r.default.triangle,"left"===i?r.default.triangleLeft:r.default.triangleRight].join(" "),a=[r.default.iconContainer,"left"===i?r.default.iconContainerLeft:r.default.iconContainerRight].join(" ");return(0,t.jsxs)("div",{className:o,role:"button",tabIndex:0,"aria-label":"left"===i?"Previous":"Next",onClick:n,onKeyDown:e=>
724{("Enter"===e.key||" "===e.key)&&(e.preventDefault(),n())},children:[(0,t.jsx)("div",{className:l}),(0,t.jsx)("div",{className:a,children:(0,t.jsx)("span",{className:r.default.icon,children:(0,t.jsx)("i",{className:`fa fa-chevron-${i}`})})})]})}])},880316,e=>{e.v({textCountdown:"TextCountdown-module__xFG4wa__textCountdown"})},499791,e=>{"use strict";var t=e.i(304886),r=e.i(160183);let i=(0,r.createContext)({isInsideLink:!1});e.s(["LinkProvider",0,function(e){let{children:r}=e;return(0,t.jsx)(i.Provider,{value:{isInsideLink:!0},children:r})},"useLinkContext",0,function(){return(0,r.useContext)(i)}])},920395,e=>{e.v({backToTop:"BackToTop-module__ahzGzW__backToTop"})},672775,e=>{e.v({button:"Button-module__cCmL7W__button"})},360114,e=>{e.v({div:"Div-module__ejcnta__div",divHorizontalWrapper:"Div-module__ejcnta__divHorizontalWrapper"})},357548,e=>{e.v({aspectRatioContainer:"EmbedHtml-module__LNZ-jq__aspectRatioContainer",aspectRatioIframe:"EmbedHtml-module__LNZ-jq__aspectRatioIframe",container:"EmbedHtml-module__LNZ-jq__container",editModeHint:"EmbedHtml-module__LNZ-jq__editModeHint",editModeOverlay:"EmbedHtml-module__LNZ-jq__editModeOverlay",editModePreview:"EmbedHtml-module__LNZ-jq__editModePreview",editModePreviewContainer:"EmbedHtml-module__LNZ-jq__editModePreviewContainer",emptyPlaceholder:"EmbedHtml-module__LNZ-jq__emptyPlaceholder",errorActions:"EmbedHtml-module__LNZ-jq__errorActions",errorContainer:"EmbedHtml-module__LNZ-jq__errorContainer",errorDescription:"EmbedHtml-module__LNZ-jq__errorDescription",errorIcon:"EmbedHtml-module__LNZ-jq__errorIcon",errorMessage:"EmbedHtml-module__LNZ-jq__errorMessage",errorReasonList:"EmbedHtml-module__LNZ-jq__errorReasonList",errorTitle:"EmbedHtml-module__LNZ-jq__errorTitle",errorUrl:"EmbedHtml-module__LNZ-jq__errorUrl",iframe:"EmbedHtml-module__LNZ-jq__iframe",loadingOverlay:"EmbedHtml-module__LNZ-jq__loadingOverlay",openNewTabButton:"EmbedHtml-module__LNZ-jq__openNewTabButton",retryButton:"EmbedHtml-module__LNZ-jq__retryButton"})},298364,e=>{e.v({collapsed:"ExpandableDiv-module__i6qEHW__collapsed",expandableDiv:"ExpandableDiv-module__i6qEHW__expandableDiv",expanded:"ExpandableDiv-module__i6qEHW__expanded"})},997287,e=>{e.v({icon:"Icon-module__k8x_jG__icon"})},514450,e=>{e.v({image:"Image-module__HV-wdq__image",imageLinkWrapped:"Image-module__HV-wdq__imageLinkWrapped",imageLinkWrapper:"Image-module__HV-wdq__imageLinkWrapper"})},295016,e=>{e.v({input:"Input-module__rmNnXW__input"})},501742,e=>{e.v({link:"Link-module__vENHXG__link"})},555788,e=>{e.v({list:"List-module__S_4rna__list","text-link--underline":"List-module__S_4rna__text-link--underline"})},500585,e=>{e.v({brandInfo:"SiteUrl-module__4t1ixq__brandInfo",description:"SiteUrl-module__4t1ixq__description",icons:"SiteUrl-module__4t1ixq__icons",logoImage:"SiteUrl-module__4t1ixq__logoImage",logoText:"SiteUrl-module__4t1ixq__logoText",section:"SiteUrl-module__4t1ixq__section",sectionLink:"SiteUrl-module__4t1ixq__sectionLink",sectionTitle:"SiteUrl-module__4t1ixq__sectionTitle",sections:"SiteUrl-module__4t1ixq__sections",siteUrl:"SiteUrl-module__4t1ixq__siteUrl"})},526e3,e=>{e.v({text:"Text-module__XTquAa__text","text-link--underline":"Text-module__XTquAa__text-link--underline"})},714956,e=>{e.v({iframe:"Video-module__U_HGha__iframe",video:"Video-module__U_HGha__video",videoContainer:"Video-module__U_HGha__videoContainer",videoWrapper:"Video-module__U_HGha__videoWrapper"})},991011,e=>{e.v({youtubeVideoContainer:"YouTubeVideo-module__IfLHzW__youtubeVideoContainer",youtubeVideoWrapper:"YouTubeVideo-module__IfLHzW__youtubeVideoWrapper"})}]); 725 726//# debugId=ba99f7c9-6194-bde2-34eb-099780543616 727//# sourceMappingURL=1zbcxwb5he1nl.js.map
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.